public class SimpleLockManager extends Object implements LockManager
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleLockManager.CurrentLock |
| Constructor and Description |
|---|
SimpleLockManager(CacheManager cacheManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearLocks() |
LockToken |
getCurrentToken(LockableResource r) |
Map<String,String> |
getLocksByUniqueId() |
LockResult |
lock(LockTimeout timeout,
LockInfo lockInfo,
LockableResource r) |
LockResult |
lock(LockTimeout timeout,
LockInfo lockInfo,
String uniqueId) |
LockResult |
lock(LockTimeout timeout,
LockInfo lockInfo,
String uniqueId,
String token) |
LockResult |
refresh(String tokenId,
LockTimeout timeout,
LockableResource resource) |
void |
unlock(String tokenId,
LockableResource r) |
public SimpleLockManager(CacheManager cacheManager)
public LockResult lock(LockTimeout timeout, LockInfo lockInfo, LockableResource r)
lock in interface LockManagerpublic LockResult lock(LockTimeout timeout, LockInfo lockInfo, String uniqueId)
public LockResult lock(LockTimeout timeout, LockInfo lockInfo, String uniqueId, String token)
public LockResult refresh(String tokenId, LockTimeout timeout, LockableResource resource)
refresh in interface LockManagerpublic void unlock(String tokenId, LockableResource r) throws NotAuthorizedException
unlock in interface LockManagerNotAuthorizedExceptionpublic LockToken getCurrentToken(LockableResource r)
getCurrentToken in interface LockManagerpublic void clearLocks()
Copyright © 2021 McEvoy Software Ltd. All rights reserved.