AQjmsQueueReceiver - Oracle 9i

Syntax

public interface AQjmsQueueReceiver extends javax.jms.QueueReceiver

All Superinterfaces
javax.jms.MessageConsumer, javax.jms.QueueReceiver

All Known Implementing Classes
AQjmsConsumer

Description
This interface extends javax.jms.QueueReceiver and defines AQ extensions to JMS. A client uses a QueueReceiver for receiving messages that have been delivered to a Queue

AQjmsQueueReceiver

Inherited Member Summary

Methods inherited from interface javax.jms.QueueReceiver

getQueue

Methods inherited from interface javax.jms.MessageConsumer

close, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener

Methods
getNavigationMode()

public int getNavigationMode()

get the navigation mode used for receiving messages

Returns
the navigation mode

Throws

JMSException - if there was an error in getting the navigation mode

getTransformation()

public String getTransformation()

Get the transformation for this receiver

Returns
the transformation

Throws

JMSException - if there was an error in getting the transformation

receiveNoData()

public void receiveNoData()

Consume the message without returning it to the user. This call will avoid the overhead of fetching the message from the database and hence can be used as an optimization by jms clients who have already got the message for example using a queue browser.

Throws

JMSException - if the message could not be received due to an error

receiveNoData(long)

public void receiveNoData(long timeout)

Consume the message without returning it to the user. This call will avoid the overhead of fetching the message from the database and hence can be used as an optimization by jms clients who have already got the message for example using a queue browser. This call will block until a message arrives or the timeout expires

Parameters

timeout - the timeout value in milliseconds

Throws

JMSException - if the message could not be received due to an error

setNavigationMode(int)

public void setNavigationMode(int mode)

set the navigation mode used for receiving messages

Parameters

mode - the new value of the navigation mode

Throws
JMSException - if there was an error in getting the navigation mode

setTransformation(String)

public void setTransformation(String transformation)

Set transformation for this receiver. 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