org.semispace
Class SemiBlockingListener

java.lang.Object
  extended by org.semispace.SemiBlockingListener
All Implemented Interfaces:
SemiEventListener<SemiAvailabilityEvent>

public class SemiBlockingListener
extends Object
implements SemiEventListener<SemiAvailabilityEvent>

Block until notification or timeout.


Constructor Summary
SemiBlockingListener()
           
 
Method Summary
 void block(long msToWait)
          If re-blocking, call reset method first
 boolean hasBeenNotified()
           
 void notify(SemiAvailabilityEvent theEvent)
           
 void reset()
          Resetting notified state - necessary for re-blocking
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SemiBlockingListener

public SemiBlockingListener()
Method Detail

reset

public final void reset()
Resetting notified state - necessary for re-blocking


notify

public void notify(SemiAvailabilityEvent theEvent)
Specified by:
notify in interface SemiEventListener<SemiAvailabilityEvent>
Parameters:
theEvent - Event which is subclass of the abstract SemiEvent
See Also:
SemiEvent, SemiAvailabilityEvent, SemiExpirationEvent

block

public void block(long msToWait)
If re-blocking, call reset method first

See Also:
reset()

hasBeenNotified

public boolean hasBeenNotified()


Copyright © 2008-2012. All Rights Reserved.