Package javax.jms
Interface MessageConsumer
-
- All Known Subinterfaces:
QueueReceiver,TopicSubscriber
public interface MessageConsumer- Version:
- $Rev: 467553 $ $Date: 2006-10-25 05:01:51 +0100 (Wed, 25 Oct 2006) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()MessageListenergetMessageListener()java.lang.StringgetMessageSelector()Messagereceive()Messagereceive(long timeout)MessagereceiveNoWait()voidsetMessageListener(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
-
-