public interface LockHandler
| Modifier and Type | Method and Description |
|---|---|
void |
lock(org.cyclos.impl.locks.LockType type,
java.io.Serializable key)
Locks the given id on the given lock type.
|
void |
lock(org.cyclos.impl.locks.LockType type,
java.io.Serializable key,
long timeInMillis)
Waits the given time to acquire the locks the given id on the given lock type
|
boolean |
tryLock(org.cyclos.impl.locks.LockType type,
java.io.Serializable key)
Locks the given id on the given lock type only if it is free at the time of invocation.
|
void lock(org.cyclos.impl.locks.LockType type,
java.io.Serializable key)
throws LockAcquisitionException
LockAcquisitionExceptionvoid lock(org.cyclos.impl.locks.LockType type,
java.io.Serializable key,
long timeInMillis)
throws LockAcquisitionException
LockAcquisitionExceptionboolean tryLock(org.cyclos.impl.locks.LockType type,
java.io.Serializable key)