org.jboss.mq
Interface SpyConsumer

All Known Implementing Classes:
SpyConnectionConsumer, SpyMessageConsumer, SpyQueueReceiver, SpyTopicSubscriber

public interface SpyConsumer

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

Version:
$Revision: 1.3 $
Author:
Hiram Chirino (Cojonudo14@hotmail.com), Adrian Brock

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

Method Detail

addMessage

void addMessage(SpyMessage mes)
                throws javax.jms.JMSException
A ConnectionReceiver uses this method to load a Consumer with a message

Parameters:
mes - the message
Throws:
javax.jms.JMSException - for any error

getSubscription

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

Returns:
the subscription


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.