Returns a List of all current messages.
the List of messages
getMatchingMessage
public Message getMatchingMessage(Filter filter)(Code)
Returns the next message that matches the filter.
The message will be removed from the list of current messages.
If there's no matching message, null will be returned.
Parameters: filter - the message filter the Message
Adds a message to the list of current messages in this
destination. The message is not delivered to registered
consumers. Can be used to preload destinations with
test messages.
Parameters: message - the message