|
Oracle® Database Advanced Queuing Java API Reference 12c Release 1 (12.1) E15980-08 |
||||||||
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
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
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()
|
Oracle® Database Advanced Queuing Java API Reference 12c Release 1 (12.1) E15980-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2001, 2013, Oracle and/or its affiliates. All rights reserved.
For authorized use only.
Do not distribute to third parties.