org.jboss.mq
Interface SpyConsumer

All Known Implementing Classes:
SpyConnectionConsumer (src) , SpyMessageConsumer (src)

public interface SpyConsumer

This class defines the interface which is used by the ConnectionReceiver to send messages to the consumers.


Method Summary
 void addMessage(SpyMessage (src)  mes)
          A ConnectionReceiver uses this method to load a Consumer with a message
 Subscription (src) getSubscription()
          This is used to know what type of messages the consumer wants
 

Method Detail

addMessage

public void addMessage(SpyMessage (src)  mes)
                throws JMSException (src) 
A ConnectionReceiver uses this method to load a Consumer with a message

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

getSubscription

public Subscription (src)  getSubscription()
This is used to know what type of messages the consumer wants

Returns:
the subscription