javax.jms
Interface MessageConsumer

All Known Subinterfaces:
QueueReceiver, TopicSubscriber

public interface MessageConsumer

Version:
$Rev: 46019 $ $Date: 2004-09-14 02:56:06 -0700 (Tue, 14 Sep 2004) $

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

Method Detail

getMessageSelector

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


Copyright © 2006 Apache Software Foundation. All Rights Reserved.