org.semispace
Class SemiBlockingListener
java.lang.Object
org.semispace.SemiBlockingListener
- All Implemented Interfaces:
- SemiEventListener<SemiAvailabilityEvent>
public class SemiBlockingListener
- extends Object
- implements SemiEventListener<SemiAvailabilityEvent>
Block until notification or timeout.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SemiBlockingListener
public SemiBlockingListener()
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.