|
Oracle® Streams Advanced Queuing Java API Reference Release 1 (10.1) B12023-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Adds Oracle AQ extensions to javax.jms.TopicSubscriber
Allows use of navigation mode and methods to consume message without returning it to user.
| Method Summary | |
int |
getNavigationMode()Get the navigation mode for receiving messages. |
javax.jms.Message |
receive(long timeout, oracle.jms.AQjmsSignature signature)Receive the next message if available within the specified timeout |
void |
receiveNoData()Consume the message without returning it to the user. |
void |
receiveNoData(long timeout)Consume the message without returning it to the user. |
void |
setNavigationMode(int mode)set the navigation mode used for receiving messagess |
| Methods inherited from interface javax.jms.TopicSubscriber |
getNoLocal, getTopic |
| Methods inherited from interface javax.jms.MessageConsumer |
close, getMessageListener, getMessageSelector, receive, receive, receiveNoWait, setMessageListener |
| Method Detail |
public int getNavigationMode()
throws JMSException
JMSException - if the navigation mode could not be set
public void setNavigationMode(int mode)
throws JMSException
mode - the new value of the navigation modeJMSException - if there was an error in getting the navigation mode
public void receiveNoData()
throws JMSException
JMSException - if the message could not be received due to an error
public void receiveNoData(long timeout)
throws JMSException
timeout - the timeout value in millisecondsJMSException - if the message could not be received due to an error
public javax.jms.Message receive(long timeout,
oracle.jms.AQjmsSignature signature)
throws JMSException
timeout - the timeout value (in milliseconds) signature the signature valueJMSException - if JMS fails to receive the next message due to some error.
|
Oracle® Streams Advanced Queuing Java API Reference Release 1 (10.1) B12023-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||