Package org.jctools.queues
Interface MessagePassingQueue.Supplier<T>
- Enclosing interface:
MessagePassingQueue<T>
public static interface MessagePassingQueue.Supplier<T>
-
Method Summary
-
Method Details
-
get
T get()This method will return the next value to be written to the queue. As such the queue implementations are commited to insert the value once the call is made.Users should be aware that underlying queue implementations may upfront claim parts of the queue for batch operations and this will effect the view on the queue from the supplier method. In particular size and any offer methods may take the view that the full batch has already happened.
WARNING: this method is assumed to never throw. Breaking this assumption can lead to a broken queue.
WARNING: this method is assumed to never return
null
. Breaking this assumption can lead to a broken queue.- Returns:
- new element, NEVER
null
-