Class LockManager
- Object
-
- LockManager
-
public class LockManager extends Object
- Author:
- Tommaso Nolli
-
-
Constructor Summary
Constructors Constructor Description LockManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Lock
aquireExclusive()
Lock
aquireShared()
void
release(Lock lock)
-
-
-
Field Detail
-
READ
public static final short READ
- See Also:
- Constant Field Values
-
WRITE
public static final short WRITE
- See Also:
- Constant Field Values
-
-
Method Detail
-
release
public void release(Lock lock)
-
aquireExclusive
public Lock aquireExclusive() throws LockTimeoutException
- Throws:
LockTimeoutException
-
aquireShared
public Lock aquireShared() throws LockTimeoutException
- Throws:
LockTimeoutException
-
-