|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.flat502.rox.utils.Lock
public class Lock
Lock supporting Conditions as per 1.5's java.util.concurrent.locks package.
Nested Class Summary | |
---|---|
class |
Lock.Condition
|
Constructor Summary | |
---|---|
Lock()
|
Method Summary | |
---|---|
void |
lock()
|
Lock.Condition |
newCondition()
|
void |
unlock()
|
void |
waitOnConditions(java.util.Collection conditions)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Lock()
Method Detail |
---|
public void lock() throws java.lang.InterruptedException
java.lang.InterruptedException
public void unlock() throws java.lang.InterruptedException, java.lang.IllegalMonitorStateException
java.lang.InterruptedException
java.lang.IllegalMonitorStateException
public Lock.Condition newCondition()
public void waitOnConditions(java.util.Collection conditions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |