|
Oracle® Streams Advanced Queuing Java API Reference Release 1 (10.1) B12023-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
Oracle class implementing javax.jms.QueueBrowser, java.util.Enumeration
| Method Summary | |
void |
close()Closes the QueueBrowser. |
java.util.Enumeration |
getEnumeration()Get an enumeration for browsing the current queue messages in the order they would be received. |
java.lang.String |
getMessageSelector()Get this queue browser's message selector expression. |
javax.jms.Queue |
getQueue()Get the queue associated with this queue browser. |
java.lang.String |
getTransformation()Get the transformation for the Consumer |
boolean |
hasMoreElements()Tests if this enumeration contains more elements. |
java.lang.Object |
nextElement()Returns the next element of this enumeration. |
void |
purgeSeen()Purge messages seen so far during browse. |
void |
setTransformation(java.lang.String transformation)Set transformation for the browser. |
| 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
QueueBrowserQueueBrowser.
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 QueueBrowserclose in class oracle.jms.AQjmsObjectJMSException - if the JMS provider fails to close this browser due to some internal error.
public javax.jms.Queue getQueue()
throws JMSException
getQueue in interface QueueBrowserJMSException - if JMS fails to get the queue associated with this Browser due to some JMS error.
public java.util.Enumeration getEnumeration()
throws JMSException
getEnumeration in interface QueueBrowserJMSException - if JMS fails to get the enumeration for this browser due to some JMS error.
public java.lang.String getMessageSelector()
throws JMSException
getMessageSelector in interface QueueBrowserJMSException - if JMS fails to get message selector due to some JMS error
public java.lang.Object nextElement()
throws java.util.NoSuchElementException
nextElement in interface java.util.Enumerationjava.util.NoSuchElementException - if no more elements exist.public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumeration
public void purgeSeen()
throws JMSException
Purge messages seen so far during browse. The purge will be finalized only when the session for the queue browse is committed.
JMSException - if a JMS error occurred during the purge operation.public void setTransformation(java.lang.String transformation)
transformation - transformation namepublic java.lang.String getTransformation()
|
Oracle® Streams Advanced Queuing Java API Reference Release 1 (10.1) B12023-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||