org.granite.client.messaging
Class AbstractTopicAgent

java.lang.Object
  extended by org.granite.client.messaging.AbstractTopicAgent
All Implemented Interfaces:
TopicAgent
Direct Known Subclasses:
Consumer, Producer

public abstract class AbstractTopicAgent
extends Object
implements TopicAgent

Author:
Franck WOLFF

Field Summary
protected  MessagingChannel channel
           
protected  Map<String,Object> defaultHeaders
           
protected  String destination
           
protected  String topic
           
 
Constructor Summary
AbstractTopicAgent(MessagingChannel channel, String destination, String topic)
           
 
Method Summary
 MessagingChannel getChannel()
           
 Map<String,Object> getDefaultHeaders()
           
 String getDestination()
           
 String getTopic()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channel

protected final MessagingChannel channel

destination

protected final String destination

topic

protected final String topic

defaultHeaders

protected final Map<String,Object> defaultHeaders
Constructor Detail

AbstractTopicAgent

public AbstractTopicAgent(MessagingChannel channel,
                          String destination,
                          String topic)
Method Detail

getChannel

public MessagingChannel getChannel()
Specified by:
getChannel in interface TopicAgent

getDestination

public String getDestination()
Specified by:
getDestination in interface TopicAgent

getTopic

public String getTopic()
Specified by:
getTopic in interface TopicAgent

getDefaultHeaders

public Map<String,Object> getDefaultHeaders()
Specified by:
getDefaultHeaders in interface TopicAgent