CompositeData getMessage(String messageId); | Returns the specified message from the queue without moving the message cursor. |
void purge(); | Deletes all of the messages from the queue. |
boolean removeMessage(String messageId); | Deletes the specified message from the queue. |
int removeMatchingMessages(String selector); | Deletes the messages matching the selector from the queue and returns the number of messages deleted. |
int removeMatchingMessages(String selector, int maxMessages); | Deletes up to the maximum number of messages that match the selector and returns the number of messages deleted. |
boolean copyMessageTo(String messageId, String destination); | Copies the specified message to a new destination. |
int copyMatchingMessagesTo(String selector, String destination); | Copies the messages matching the selector and returns the number of messages copied. |
int copyMatchingMessagesTo(String selector, String destination, int maxMessages); | Copies up to the maximum number of messages that match the selector and returns the number of messages copied. |
boolean moveMessageTo(String messageId, String destination); | Moves the specified message to a new destination. |
int moveMatchingMessagesTo(String selector, String destination); | Moves the messages matching the selector and returns the number of messages moved. |
int moveMatchingMessagesTo(String selector, String destination, int maxMessages); | Moves up to the maximum number of messages that match the selector and returns the number of messages moved. |
boolean retryMessage(String messageId); | Moves the specified message back to its original destination. |
int cursorSize(); | Returns the number of messages available to be paged in by the cursor. |
boolean doesCursorHaveMessagesBuffered(); | Returns true if the cursor has buffered messages to be delivered. |
boolean doesCursorHaveSpace(); | Returns true if the cursor has memory space available. |
CompositeData[] browse(); | Returns all messages in the queue, without changing the cursor, as an array. |
CompositeData[] browse(String selector); | Returns all messages in the queue that match the selector, without changing the cursor, as an array. |
TabularData browseAsTable(String selector); | Returns all messages in the queue that match the selector, without changing the cursor, as a table. |
TabularData browseAsTable(); | Returns all messages in the queue, without changing the cursor, as a table. |
void resetStatistics(); | Resets the statistics collected for the queue. |
java.util.List browseMessages(String selector); | Returns all messages in the queue that match the selector, without changing the cursor, as a list. |
java.util.List browseMessages(); | Returns all messages in the queue, without changing the cursor, as a list. |
String sendTextMessage(String body, String username, String password); | Send a text message to a secure queue. |
String sendTextMessage(String body); | Send a text message to a queue. |