| Package | Description |
|---|---|
| com.h3c.dist.lock |
| Modifier and Type | Method and Description |
|---|---|
Lock |
LockService.createMultiLock(ApplicationId appId,
LockName name,
List<LockNameType> locks)
Create a lock object that represents a pool of locks requested.
|
Lock |
LockService.createReadLock(ApplicationId appId,
LockName name)
Get read lock object.
|
Lock |
LockService.createWriteLock(ApplicationId appId,
LockName name)
Get write lock object.
|
| Modifier and Type | Method and Description |
|---|---|
List<Lock> |
LockService.getAppLocks(ApplicationId appId)
Get the list of locks
Lock that are created by the specified
application instance. |
List<Lock> |
LockService.getAppLocks(List<LockName> lockNameList,
ApplicationId appId)
Get the list of locks
Lock present on the specified set of
lockInfos that were created by the provided application instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
LockService.changeOwner(Lock lock,
ApplicationId appId)
Change the ownership of a set of read and/or write locks.
|
void |
LockService.deleteLock(Lock lock)
Delete a lock create using any of the create lock methods above.
|
Copyright © 2014. All Rights Reserved.