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