Class EsbMessageBrowser
java.lang.Object
com.kingsrook.qqq.esb.management.EsbMessageBrowser
Browses the messages on a broker queue (including dead-letter and topic
subscription queues) with a JMS QueueBrowser - so on every broker, with or
without a management API. Browsing leaves the messages on the queue.
Needs a QContext with the provider's instance (it opens a session through
EsbConnectionManager).
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic List<EsbBrowsedMessage> Up to limit messages from a queue, skipping the first offset (counting from the head of the queue, as the broker orders it).
-
Field Details
-
MAX_RAW_BODY_LENGTH
-
MAX_LIMIT
-
-
Method Details
-
browse
public static List<EsbBrowsedMessage> browse(String providerName, String brokerQueueName, int offset, int limit) throws QException Up to limit messages from a queue, skipping the first offset (counting from the head of the queue, as the broker orders it). Messages being delivered to a consumer at that moment aren't shown. To tell whether there are more after a page, ask for one more than you show. Throws QUserFacingException for a negative offset, or a limit outside 0 to MAX_LIMIT; QException if the provider is unknown, or its broker can't be reached or browsed.- Throws:
QException
-