Package com.oracle.coherence.common.base
Interface Notifier
- 
- All Known Implementing Classes:
 ConcurrentNotifier,SingleWaiterCooperativeNotifier,SingleWaiterMultiNotifier
public interface NotifierA Condition-like object, used to block thread(s) for a notification.Unlike
Conditionno external locking or synchronization is needed with Notifiers; i.e. clients need not synchronize on this class prior to calling await() or signal(), nor should they use any of the primitive wait() or notify() methods. Note: the Notifiers are expected to beTimeoutcompatible.*- Author:
 - cp/mf 2010-06-15
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidawait()Wait for a notification.voidawait(long cMillis)Wait for a notification.voidsignal()Notifies the waiting thread(s), waking them up if awaiting. 
 - 
 
- 
- 
Method Detail
- 
await
default void await() throws InterruptedExceptionWait for a notification. Note that spurious wake-ups are possible.- Throws:
 InterruptedException- if the calling thread is interrupted while it is waiting
 
- 
await
void await(long cMillis) throws InterruptedExceptionWait for a notification. Note that spurious wake-ups are possible.- Parameters:
 cMillis- the maximum wait time in milliseconds, or zero for indefinite- Throws:
 InterruptedException- if the calling thread is interrupted while it is waiting
 
- 
signal
void signal()
Notifies the waiting thread(s), waking them up if awaiting. 
 - 
 
 -