|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mq.jms.MQQueueBrowser
A client uses an MQQueueBrowser to look at messages on a queue without removing them.
Note that the WebSphere MQ class MQQueueEnumeration
is
used to hold the browse cursor.
Method Summary | |
void |
close()
Closes all open queues left in enumerated objects. |
java.util.Enumeration |
getEnumeration()
Gets an enumeration for browsing the current queue messages in the order that they are received. |
java.lang.String |
getMessageSelector()
Gets the queue browser's message selector expression. |
javax.jms.Queue |
getQueue()
Gets the queue associated with this queue browser. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public javax.jms.Queue getQueue() throws javax.jms.JMSException
getQueue
in interface javax.jms.QueueBrowser
javax.jms.JMSException
- if JMS fails to get the
queue associated with this browser
due to some JMS error.public java.lang.String getMessageSelector() throws javax.jms.JMSException
getMessageSelector
in interface javax.jms.QueueBrowser
javax.jms.JMSException
- if JMS fails to get the
message selector for this browser
due to some JMS error.public java.util.Enumeration getEnumeration() throws javax.jms.JMSException
Note that if the browser is created for a nonexistent queue, this is not detected until the first call to getEnumeration.
getEnumeration
in interface javax.jms.QueueBrowser
javax.jms.JMSException
- if JMS fails to get the enumeration for this browser
because of a JMS error.public void close() throws javax.jms.JMSException
close
in interface javax.jms.QueueBrowser
javax.jms.JMSException
- if JMS fails to close this browser because of a JMS error.
|
(c) Copyright IBM Corp. 2005. All Rights Reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |