public class AQjmsQueueBrowser extends oracle.jms.AQjmsObject implements QueueBrowser, java.util.Enumeration
javax.jms.QueueBrowser
and java.util.Enumeration
.Modifier and Type | Method and Description |
---|---|
void |
close()
Public for test harness purposes
|
java.util.Enumeration |
getEnumeration()
Gets an enumeration for browsing the current queue messages in the order they would be received.
|
java.lang.String |
getMessageSelector()
Gets this queue browser's message selector expression.
|
Queue |
getQueue()
Gets the queue associated with this queue browser.
|
java.lang.String |
getTransformation()
Gets this browser's transformation.
|
boolean |
hasMoreElements()
Tests if this enumeration contains more elements.
|
java.lang.Object |
nextElement()
Returns the next element of this enumeration.
|
void |
purgeSeen()
Purges messages seen so far during browse.
|
void |
setTransformation(java.lang.String transformation)
Sets this browser's transformation.
|
public void close() throws JMSException
oracle.jms.AQjmsObject
close
in interface QueueBrowser
close
in class oracle.jms.AQjmsObject
JMSException
- if the JMS provider fails to close this browser due to some internal error.public Queue getQueue() throws JMSException
getQueue
in interface QueueBrowser
JMSException
- if the queue is not retrieved due to some error.public java.util.Enumeration getEnumeration() throws JMSException
getEnumeration
in interface QueueBrowser
JMSException
- if the enumeration is not retrieved due to some error.public java.lang.String getMessageSelector() throws JMSException
getMessageSelector
in interface QueueBrowser
JMSException
- if the message selector is not retrieved due to some error.public java.lang.Object nextElement() throws java.util.NoSuchElementException
nextElement
in interface java.util.Enumeration
java.util.NoSuchElementException
- if no more elements exist.public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
true
if more elements exist in the enumeration, false
otherwisepublic void purgeSeen() throws JMSException
JMSException
- if an error occurs during the purge operation.public void setTransformation(java.lang.String transformation)
transformation
- the transformation to use when getting messagespublic java.lang.String getTransformation()