|
Oracle® Streams Advanced Queuing Java API Reference 11g Release 2 (11.2) E10768-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
public class 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
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 Queue getQueue()
throws JMSException
getQueue in interface QueueBrowserJMSException - if the queue is not retrieved due to some error.
public java.util.Enumeration getEnumeration()
throws JMSException
getEnumeration in interface QueueBrowserJMSException - if the enumeration is not retrieved due to some error.
public java.lang.String getMessageSelector()
throws JMSException
getMessageSelector in interface QueueBrowserJMSException - 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.Enumerationjava.util.NoSuchElementException - if no more elements exist.public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumerationtrue if more elements exist in the enumeration, false otherwise
public 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 11g Release 2 (11.2) E10768-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||