public interface LockService
| Modifier and Type | Method and Description |
|---|---|
Lock |
acquireLock(java.lang.String lockName,
java.lang.String message)
Acquires lock with the given lock name.
|
boolean |
isLocked(java.lang.String lockName)
Returns true if a lock with the given lock name is held .
|
void |
releaseLock(java.lang.String lockName)
Release lock with the given lock name.
|
Lock acquireLock(java.lang.String lockName, java.lang.String message)
null, otherwise it returns Lock that holds the locks.lockName - message - arbitrary message, cannot be nullnull if requested lock was acquiredvoid releaseLock(java.lang.String lockName)
lockName - boolean isLocked(java.lang.String lockName)
lockName - Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.