org.jboss.jms.client
Interface ConsumerDelegate

All Superinterfaces:
Lifecycle (src)
All Known Implementing Classes:
P2PConsumerDelegate (src)

public interface ConsumerDelegate
extends Lifecycle (src)

The implementation of a consumer


Method Summary
 Message (src) receive(long timeout)
          Receive a message
 void setMessageListener(MessageListener (src)  listener)
          Set the message listener
 
Methods inherited from interface org.jboss.jms.client.Lifecycle (src)
close, closing
 

Method Detail

receive

public Message (src)  receive(long timeout)
                throws JMSException (src) 
Receive a message

Parameters:
timeout - the timeout
Returns:
the message
Throws:
JMSException (src) - for any error

setMessageListener

public void setMessageListener(MessageListener (src)  listener)
                        throws JMSException (src) 
Set the message listener

Throws:
JMSException (src) - for any error