public class AQjmsTopicBrowser extends oracle.jms.AQjmsObject implements TopicBrowser, java.util.Enumeration
javax.jms.TopicBrowser and java.util.Enumeration.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Public for test harness purposes
|
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.
|
public void close()
throws JMSException
oracle.jms.AQjmsObjectclose in interface TopicBrowserclose in class oracle.jms.AQjmsObjectJMSException - if a JMS fails to close this Browser due to some JMS error.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 TopicBrowserpublic 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 otherwisepublic 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()