Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.mq
Interface SpyConsumer

All Known Implementing Classes:
  SpyConnectionConsumer, SpyMessageConsumer

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

    public 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

    public Subscription getSubscription()

  This is used to know what type of messages the consumer wants

  Returns:
    the subscription

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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