goodsjpi
Class CondEvent

java.lang.Object
  extended bygoodsjpi.CondEvent

public class CondEvent
extends java.lang.Object

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

CondEvent

public CondEvent()
Method Detail

signal

public void signal()

waitSignal

public void waitSignal()