|
Oracle® Database Advanced Queuing Java API Reference 12c Release 1 (12.1) E15980-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AQjmsTopicSubscriber
Adds Oracle® Database Advanced Queuing 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. |
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 |
---|
int getNavigationMode() throws JMSException
JMSException
- if the navigation mode could not be setvoid setNavigationMode(int mode) throws JMSException
mode
- the new value of the navigation mode. See the "Oracle® Database Advanced Queuing User's Guide and Reference" for explanation of the navigation mode. The valid values of this parameter are oracle.jms.AQjmsConstants.NAVIGATION_FIRST_MESSAGE oracle.jms.AQjmsConstants.NAVIGATION_NEXT_MESSAGE oracle.jms.AQjmsConstants.NAVIGATION_NEXT_TRANSACTIONJMSException
- if there was an error in getting the navigation mode.void receiveNoData() throws JMSException
JMSException
- if the message could not be received due to an error.void receiveNoData(long timeout) throws JMSException
timeout
- the timeout value in milliseconds.JMSException
- if the message could not be received due to an error.Message receive(long timeout, oracle.jms.AQjmsSignature signature) throws JMSException
timeout
- the timeout value (in milliseconds)signature
- the signature value.null
if one is not available.JMSException
- if JMS fails to receive the next message due to some error.
|
Oracle® Database Advanced Queuing Java API Reference 12c Release 1 (12.1) E15980-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2001, 2013, Oracle and/or its affiliates. All rights reserved.
For authorized use only.
Do not distribute to third parties.