|
Préférences
Moteurs de recherche
|
||||||||||
| JavaTM Platform, Enterprise Edition, v 5.0
javax.jms
|
|||||||||||
| Method Summary | |
|---|---|
void |
close()
Closes the QueueBrowser. |
Enumeration |
getEnumeration()
Gets an enumeration for browsing the current queue messages in the order they would be received. |
String |
getMessageSelector()
Gets this queue browser's message selector expression. |
Queue |
getQueue()
Gets the queue associated with this queue browser. |
| Method Detail |
|---|
Queue getQueue() throws JMSException
JMSException - if the JMS provider fails to get the
queue associated with this browser
due to some internal error.String getMessageSelector() throws JMSException
JMSException - if the JMS provider fails to get the
message selector for this browser
due to some internal error.Enumeration getEnumeration() throws JMSException
JMSException - if the JMS provider fails to get the
enumeration for this browser
due to some internal error.
void close()
throws JMSException
QueueBrowser.
Since a provider may allocate some resources on behalf of a QueueBrowser outside the Java virtual machine, clients should close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough.
JMSException - if the JMS provider fails to close this
browser due to some internal error.