|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ccs.beetree.DualModeLock
public class DualModeLock
A nestable, MT-safe lock which provides inclusive ("read") or exclusive ("write") locking. This is primarily BeeTree internals; however, it is made public in case other apps find it useful.
Constructor Summary | |
---|---|
DualModeLock()
|
Method Summary | |
---|---|
static long |
getTimeout()
|
void |
lockRO()
Lock for read-only operations. |
void |
lockRW()
Lock for read-write operations. |
static void |
setTimeout(long millis)
Set a deadlock timeout. |
void |
unlockRO()
Release an RO lock. |
void |
unlockRW()
Release an RO lock. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DualModeLock()
Method Detail |
---|
public void lockRO() throws DeadlockException
DeadlockException
public void lockRW() throws DeadlockException
DeadlockException
public void unlockRO()
public void unlockRW()
public static void setTimeout(long millis)
public static long getTimeout()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |