public interface QueueRing<M>
extends java.util.concurrent.BlockingQueue<M>
| Modifier and Type | Method and Description |
|---|---|
void |
deliver(ActorProcessor<? super M> deliver)
Deliver available messages to the delivery handler.
|
long |
head() |
boolean |
offer(M value,
long timeout,
java.util.concurrent.TimeUnit unit)
Offer a new message to the queue.
|
void |
wake()
Wake the worker to process new messages.
|
add, contains, drainTo, drainTo, offer, poll, put, remainingCapacity, remove, takelong head()
boolean offer(M value, long timeout, java.util.concurrent.TimeUnit unit)
wake() will be required because offer
does not automatically wake the consumeroffer in interface java.util.concurrent.BlockingQueue<M>value - the next messagetimeout - offer timeoutunit - units for the offer timeoutvoid wake()
void deliver(ActorProcessor<? super M> deliver) throws java.lang.Exception
deliver - handler to process the messageoutbox - message contextjava.lang.Exception