Constructor and Description |
---|
RWKeyLock() |
Modifier and Type | Method and Description |
---|---|
void |
clean() |
List<K> |
getOpenLockNames() |
Boolean |
isReadLocked(K token)
Queries if one or more read lock is held by any thread on given lock token, returns null when lock with this token does not exists
|
Boolean |
isWriteLocked(K token)
Queries if the write lock is held by any thread on given lock token, returns null when lock with this token does not exists
|
Lock |
lock(K token,
long timeout,
boolean readOnly) |
void |
unlock(Lock lock) |
public RWKeyLock()
public Lock lock(K token, long timeout, boolean readOnly) throws LockException, LockInterruptedException
public List<K> getOpenLockNames()
public Boolean isWriteLocked(K token)
token
- name of the lock to checkpublic Boolean isReadLocked(K token)
token
- name of the lock to checkpublic void clean()
Copyright © 2015 Lucee