org.ws4d.java.util
Class Sync

java.lang.Object
  extended by org.ws4d.java.util.Sync

public class Sync
extends java.lang.Object

Synchronizes objects for correct wait() and notify() implementation as described in Object.wait().


Constructor Summary
Sync()
           
 
Method Summary
 java.lang.Exception getException()
          Returns the exception for this synchronization object.
 boolean isNotified()
          Returns true if a notification was created, false otherwise.
 void notifyNow()
          Notifies all.
 void notifyNow(java.lang.Exception e)
          Notifies all if an exception occurs.
 void reset()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sync

public Sync()
Method Detail

isNotified

public boolean isNotified()
Returns true if a notification was created, false otherwise.

Returns:
true if a notification was created, false otherwise.

notifyNow

public void notifyNow()
Notifies all.


notifyNow

public void notifyNow(java.lang.Exception e)
Notifies all if an exception occurs.


getException

public java.lang.Exception getException()
Returns the exception for this synchronization object.

Returns:

reset

public void reset()