public class LockManager<T>
extends java.lang.Object
Constructor and Description |
---|
LockManager() |
Modifier and Type | Method and Description |
---|---|
BlueReadLock<T> |
acquireReadLock(T key) |
BlueWriteLock<T> |
acquireWriteLock(T key) |
boolean |
isLocked(T key) |
void |
releaseReadLock(T key) |
void |
releaseWriteLock(T key) |
public boolean isLocked(T key)
public BlueReadLock<T> acquireReadLock(T key)
public void releaseReadLock(T key)
public BlueWriteLock<T> acquireWriteLock(T key)
public void releaseWriteLock(T key)