AQjmsQueueBrowser - Oracle 9i

Syntax

All Implemented Interfaces

java.util.Enumeration, javax.jms.QueueBrowser

Description

This class implements the QueueBrowser interface. A QueueBrowser is used to look at messages in a Queue without removing them

AQjmsQueueBrowser

Inherited Member Summary

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait

Methods
close()

public void close()

Since a provider may allocate some resources on behalf of a QueueBrowser 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.

Specified By

javax.jms.QueueBrowser.close() in interface javax.jms.QueueBrowser

getEnumeration()

public java.util.Enumeration getEnumeration()

Get an enumeration for browsing the current queue messages in the order they would be received.

Specified By

javax.jms.QueueBrowser.getEnumeration() in interface javax.jms.QueueBrowser

Returns

an enumeration for browsing the messages

Throws

JMSException - if JMS fails to get the enumeration for this browser due to some JMS error.

getMessageSelector()

public java.lang.String getMessageSelector()

Get this queue browser's message selector expression.

Specified By

javax.jms.QueueBrowser.getMessageSelector() in interface javax.jms.QueueBrowser

Returns

this queue browser's message selector

Throws

JMSException - if JMS fails to get message selector due to some JMS error

getQueue()

public javax.jms.Queue getQueue()

Get the queue associated with this queue browser.

Specified By

javax.jms.QueueBrowser.getQueue() in interface javax.jms.QueueBrowser

Returns

the queue

Throws

JMSException - if JMS fails to get the queue associated with this Browser due to some JMS error.

getTransformation()

public String getTransformation()

Get the transformation for this browser

Returns

the transformation

Throws

JMSException - if there was an error in getting the transformation

hasMoreElements()

public boolean hasMoreElements()

Tests if this enumeration contains more elements.

Specified By

java.util.Enumeration.hasMoreElements() in interface java.util.Enumeration

Returns

true if more elements exist in the enumeration false otherwise.

nextElement()

public java.lang.Object nextElement()

Returns the next element of this enumeration.

Specified By

java.util.Enumeration.nextElement() in interface java.util.Enumeration

Returns

the next element of this enumeration

Throws

NoSuchElementException - if no more elements exist.

setTransformation(String)

public void setTransformation(String transformation)

Set transformation for this browser. This transformation will be applied before the message is returned to the user.

Parameters

transformation - transformation to be applied before returning the message

Throws

JMSException - if there was an error in setting the transformation

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Oracle 9i Topics