|
Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) B14291-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jms.AQjmsObject
oracle.jms.AQjmsQueueBrowser
This is an Oracle class which implements javax.jms.QueueBrowser
and java.util.Enumeration
.
Method Summary | |
void |
close() Closes the QueueBrowser . |
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. |
Methods inherited from class oracle.jms.AQjmsObject |
checkClosed, children, finalize, getID, getParent, isOpen, localClose, preClose |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
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
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()
|
Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) B14291-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |