public class HornetQQueueBrowser extends Object implements QueueBrowser
Modifier | Constructor and Description |
---|---|
protected |
HornetQQueueBrowser(HornetQQueue queue,
String messageSelector,
ClientSession session) |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
toString() |
protected HornetQQueueBrowser(HornetQQueue queue, String messageSelector, ClientSession session) throws JMSException
JMSException
public void close() throws JMSException
QueueBrowser
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.
close
in interface QueueBrowser
JMSException
- if the JMS provider fails to close this
browser due to some internal error.public Enumeration getEnumeration() throws JMSException
QueueBrowser
getEnumeration
in interface QueueBrowser
JMSException
- if the JMS provider fails to get the
enumeration for this browser
due to some internal error.public String getMessageSelector() throws JMSException
QueueBrowser
getMessageSelector
in interface QueueBrowser
JMSException
- if the JMS provider fails to get the
message selector for this browser
due to some internal error.public Queue getQueue() throws JMSException
QueueBrowser
getQueue
in interface QueueBrowser
JMSException
- if the JMS provider fails to get the
queue associated with this browser
due to some internal error.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.