public interface MessageQueue
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the Queue of any Messages.
|
void |
close()
Closes the Message Queue.
|
JmsInboundMessageDispatch |
dequeue(long timeout)
Used to get an enqueued message.
|
JmsInboundMessageDispatch |
dequeueNoWait()
Used to get an enqueued Message if on exists, otherwise returns null.
|
void |
enqueue(JmsInboundMessageDispatch envelope)
Adds the given message envelope to the end of the Message queue.
|
void |
enqueueFirst(JmsInboundMessageDispatch envelope)
Adds the given message envelope to the front of the Message queue.
|
boolean |
isClosed() |
boolean |
isEmpty() |
boolean |
isRunning() |
int |
size()
Returns the number of Messages currently in the Queue.
|
void |
start()
Starts the Message Queue.
|
void |
stop()
Stops the Message Queue.
|
void enqueue(JmsInboundMessageDispatch envelope)
envelope - The in-bound Message envelope to enqueue.void enqueueFirst(JmsInboundMessageDispatch envelope)
envelope - The in-bound Message envelope to enqueue.JmsInboundMessageDispatch dequeue(long timeout) throws InterruptedException
timeout - The amount of time to wait for an entry to be added before returning null.InterruptedException - if the wait is interrupted.JmsInboundMessageDispatch dequeueNoWait()
void start()
void stop()
void close()
boolean isRunning()
boolean isClosed()
boolean isEmpty()
int size()
void clear()
Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.