| java.lang.Object org.jboss.mq.SpyMessageConsumer
All known Subclasses: org.jboss.mq.SpyTopicSubscriber, org.jboss.mq.SpyQueueReceiver,
SpyMessageConsumer | public class SpyMessageConsumer implements MessageConsumer,SpyConsumer,Runnable(Code) | | This class implements javax.jms.MessageConsumer.
author: Norbert Lataille (Norbert.Lataille@m4x.org) author: Hiram Chirino (Cojonudo14@hotmail.com) author: David Maplesden (David.Maplesden@orion.co.nz) author: Adrian Brock version: $Revision: 58406 $ |
listenerThread | protected Thread listenerThread(Code) | | The listener thread
|
listening | protected boolean listening(Code) | | Are we listening
|
log | static Logger log(Code) | | The log
|
messageListener | MessageListener messageListener(Code) | | My message listener (null if none)
|
receiving | protected boolean receiving(Code) | | Are we receiving a message
|
sessionConsumer | boolean sessionConsumer(Code) | | Is this a session consumer?
|
subscription | public Subscription subscription(Code) | | The subscription structure should be fill out by the descendent
|
trace | static boolean trace(Code) | | Is trace enabled
|
waitingForMessage | protected boolean waitingForMessage(Code) | | Are we waiting for a message
|
SpyMessageConsumer | SpyMessageConsumer(SpySession s, boolean sessionConsumer)(Code) | | Create a new SpyMessageConsumer
Parameters: s - the session Parameters: sessionConsumer - true for a session consumer, false otherwise |
SpyMessageConsumer | SpyMessageConsumer(SpySession s, boolean sessionConsumer, SpyDestination destination, String selector, boolean noLocal) throws InvalidSelectorException(Code) | | Create a new SpyMessageConsumer
Parameters: s - the session Parameters: sessionConsumer - true for a session consumer, false otherwise Parameters: destination - the destination Parameters: selector - the selector Parameters: noLocal - true for noLocal, false otherwise |
addMessage | public void addMessage(SpyMessage message) throws JMSException(Code) | | Add a message
Parameters: message - the message to add throws: JMSException - for any error |
close | public void close() throws JMSException(Code) | | |
getDestination | protected Destination getDestination() throws JMSException(Code) | | |
getMessage | Message getMessage()(Code) | | |
getMessageListener | public MessageListener getMessageListener() throws JMSException(Code) | | |
getMessageSelector | public String getMessageSelector() throws JMSException(Code) | | |
getNoLocal | protected boolean getNoLocal() throws JMSException(Code) | | |
getSubscription | public Subscription getSubscription()(Code) | | Get the subscription
the subscription |
isListening | protected boolean isListening()(Code) | | Are we listening
true when listening, false otherwise |
preProcessMessage | Message preProcessMessage(SpyMessage message) throws JMSException(Code) | | |
prepareDelivery | void prepareDelivery(SpyMessage message) throws JMSException(Code) | | Prepare the message for delivery
Parameters: message - the message throws: JMSException - for any error |
receive | public Message receive() throws JMSException(Code) | | |
receive | public Message receive(long timeOut) throws JMSException(Code) | | |
receiveNoWait | public Message receiveNoWait() throws JMSException(Code) | | |
restartProcessing | public void restartProcessing()(Code) | | Restarts the processing of the messages in case of a recovery
|
sessionConsumerProcessMessage | protected void sessionConsumerProcessMessage(SpyMessage message) throws JMSException(Code) | | |
setMessageListener | public void setMessageListener(MessageListener listener) throws JMSException(Code) | | |
|
|