站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 messaging API Documentation 英文版文档

SpyConsumer (JBoss Messaging API) - JBoss 3.2.7 messaging API Documentation 英文版文档


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.2.8.1 $
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


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