public final class ActiveMQQueueBrowser extends Object implements QueueBrowser
Modifier | Constructor and Description |
---|---|
protected |
ActiveMQQueueBrowser(ConnectionFactoryOptions options,
ActiveMQQueue queue,
String messageSelector,
ClientSession session,
boolean enable1xPrefixes) |
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 ActiveMQQueueBrowser(ConnectionFactoryOptions options, ActiveMQQueue queue, String messageSelector, ClientSession session, boolean enable1xPrefixes) 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 AutoCloseable
close
in interface QueueBrowser
JMSException
- if the Jakarta Messaging provider fails to close this browser due to some internal error.public Enumeration getEnumeration() throws JMSException
QueueBrowser
getEnumeration
in interface QueueBrowser
JMSException
- if the Jakarta Messaging 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 Jakarta Messaging 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 Jakarta Messaging provider fails to get the queue associated with this browser due to some internal
error.Copyright © 2021 JBoss by Red Hat. All rights reserved.