com.tangosol.util
Class SingleWaiterMultiNotifier

java.lang.Objectcom.tangosol.util.SingleWaiterMultiNotifier

public class SingleWaiterMultiNotifier

extends java.lang.Object

A Condition-like object, used by a single thread to block for a notification, and optimized for many concurrent notifications by other threads. Basically, this is a blocking queue without any state to actually enqueue: the await() method is analagous to an imaginary "take all" variant of the BlockingQueue.take() method, and the signal() method is analagous to BlockingQueue.put().

Note that no synchronization is needed to use this class; i.e. clients must not synchronize on this class prior to calling await() or signal(), nor should the use any of the primitive wait() or notify() methods.