@Component public class JmsMessageInMemoryQueue extends Object
| Constructor and Description |
|---|
JmsMessageInMemoryQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(JmsMessage jmsMessage)
Adds a JMS message to the queue.
|
void |
clear()
Removes all of the elements from the queue.
|
boolean |
isEmpty()
Returns true if the queue contains no elements.
|
JmsMessage |
remove()
Removes a JMS message from the head of the queue.
|
int |
size()
Returns the number of elements in the queue.
|
public void add(JmsMessage jmsMessage)
jmsMessage - the JMS message to be addedpublic void clear()
public boolean isEmpty()
public JmsMessage remove()
NoSuchElementException - if the queue is emptypublic int size()
Copyright © 2017. All rights reserved.