javax.jms
Interface MessageConsumer

All Known Subinterfaces:
QueueReceiver, TopicSubscriber
All Known Implementing Classes:
MessageConsumerImpl, QueueReceiverImpl, TopicSubscriberImpl

public interface MessageConsumer

The main destination.


Method Summary
 void close()
           
 MessageListener getMessageListener()
           
 java.lang.String getMessageSelector()
           
 Message receive()
           
 Message receive(long timeout)
           
 Message receiveNoWait()
           
 void setMessageListener(MessageListener listener)
           
 

Method Detail

getMessageSelector

java.lang.String getMessageSelector()
                                    throws JMSException
Throws:
JMSException

getMessageListener

MessageListener getMessageListener()
                                   throws JMSException
Throws:
JMSException

setMessageListener

void setMessageListener(MessageListener listener)
                        throws JMSException
Throws:
JMSException

receive

Message receive()
                throws JMSException
Throws:
JMSException

receive

Message receive(long timeout)
                throws JMSException
Throws:
JMSException

receiveNoWait

Message receiveNoWait()
                      throws JMSException
Throws:
JMSException

close

void close()
           throws JMSException
Throws:
JMSException