|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoodsjpi.CondEvent
This is a notification primitive used in GOODS Java API. By means of this object client's threads can wait notifications about persistence object instance modification event or transaction abort event. After signaling, event leaves in signaled state until some thread invokes waitSignal() method. If waitSignal() method is invoked by thread before event was signaled, then thread is blocked until some other thread will call signal() method. If several threads are waiting for event, only one of them will awakeby signal() method. Attention: waitSignal() method in general should not be called from synchronized method because caller object mutex will not be unlocked.
Constructor Summary | |
CondEvent()
|
Method Summary | |
void |
signal()
|
void |
waitSignal()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CondEvent()
Method Detail |
public void signal()
public void waitSignal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |