public class PriorityMessageQueue extends java.lang.Object implements MessageQueue
| Constructor and Description |
|---|
PriorityMessageQueue(Timer timer,
MessageFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelMessages(MessagePredicate predicate) |
void |
clear() |
void |
consume(MessageQueueConsumer consumer) |
Message |
next(MessageQueueConsumer consumer) |
void |
post(Message message) |
void |
postAt(Message message,
long readyNs) |
void |
stop() |
public PriorityMessageQueue(Timer timer, MessageFactory factory)
public void consume(MessageQueueConsumer consumer)
consume in interface MessageQueuepublic void clear()
clear in interface MessageQueuepublic void stop()
stop in interface MessageQueuepublic Message next(MessageQueueConsumer consumer)
public void post(Message message)
post in interface MessageQueuepublic void postAt(Message message, long readyNs)
postAt in interface MessageQueuepublic void cancelMessages(MessagePredicate predicate)
cancelMessages in interface MessageQueue