WebSphere MQ class: MQQueueBrowser
java.lang.Object | +----com.ibm.mq.jms.MQQueueBrowser |
A client uses a QueueBrowser to look at messages on a queue without removing them.
See also: QueueReceiver
public void close() throws JMSException
Because a provider may allocate some resources outside of the JVM on behalf of a QueueBrowser, clients should close them when they are not needed. You cannot rely on garbage collection to reclaim these resources eventually, because this may not occur soon enough.
public java.util.Enumeration getEnumeration() throws JMSException
Get an enumeration for browsing the current queue messages in the order that they would be received.
public java.lang.String getMessageSelector() throws JMSException
Get this queue browser's message selector expression.
public Queue getQueue() throws JMSException
Get the queue associated with this queue browser.