|
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.AQjmsTopicBrowser
This is an Oracle class which implements javax.jms.TopicBrowser and java.util.Enumeration.
| Method Summary | |
void |
close()Since a provider may allocate some resources on behalf of a TopicBrowser outside the JVM, clients should close them when they are not needed. |
java.util.Enumeration |
getEnumeration()Gets an enumeration for browsing the current topic messages in the order they would be received. |
java.lang.String |
getMessageSelector()Gets this topic browser's message selector expression. |
Topic |
getTopic()Gets the topic associated with this topic 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
TopicBrowserSince a provider may allocate some resources on behalf of a TopicBrowser outside the JVM, 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 TopicBrowserJMSException
public Topic getTopic()
throws JMSException
getTopic in interface TopicBrowserJMSException - if the topic is not retrieved due to some error.public java.util.Enumeration getEnumeration()
If getEnumeration() is called twice on the same TopicBrowser, the same enumeration object is returned both times. Hence calling nextElement() on one enumeration object would modify the state of both enumeration objects.
getEnumeration in interface TopicBrowser
public java.lang.String getMessageSelector()
throws JMSException
getMessageSelector in interface TopicBrowserJMSException - if the message selector is not retrieved due to some error.
public java.lang.Object nextElement()
throws java.util.NoSuchElementException
Attempts to use cached messages (if one is available from a previous call to hasMoreElements()). If the browser's selector used message ID, only one message can ever be returned during the browse; caches this state for subsequent calls.
nextElement in interface java.util.Enumerationjava.util.NoSuchElementException - if no more elements exist.public boolean hasMoreElements()
Attempts to cach messages (for use by a subsequent call to nextElement()). If the browser's selector uses message ID, only one message can ever be returned during the browse; caches this state for subsequent calls.
hasMoreElements in interface java.util.Enumerationtrue if more elements exist in the enumeration, false otherwise
public void purgeSeen()
throws JMSException
purgeSeen in interface TopicBrowserJMSException - 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 | |||||||||