public abstract class AbstractTopicAgent extends java.lang.Object implements TopicAgent
| Modifier and Type | Field and Description |
|---|---|
protected MessagingChannel |
channel |
protected java.util.Map<java.lang.String,java.lang.Object> |
defaultHeaders |
protected java.lang.String |
destination |
protected java.lang.String |
topic |
| Constructor and Description |
|---|
AbstractTopicAgent(MessagingChannel channel,
java.lang.String destination,
java.lang.String topic) |
| Modifier and Type | Method and Description |
|---|---|
MessagingChannel |
getChannel()
Messaging channel to which the agent is attached
|
java.util.Map<java.lang.String,java.lang.Object> |
getDefaultHeaders()
Default headers added to all messages sent by this agent
|
java.lang.String |
getDestination()
Name of the remote destination for the topic
|
java.lang.String |
getTopic()
Subtopic for the remote topic
|
protected final MessagingChannel channel
protected final java.lang.String destination
protected final java.lang.String topic
protected final java.util.Map<java.lang.String,java.lang.Object> defaultHeaders
public AbstractTopicAgent(MessagingChannel channel, java.lang.String destination, java.lang.String topic)
public MessagingChannel getChannel()
TopicAgentgetChannel in interface TopicAgentpublic java.lang.String getDestination()
TopicAgentgetDestination in interface TopicAgentpublic java.lang.String getTopic()
TopicAgentgetTopic in interface TopicAgentpublic java.util.Map<java.lang.String,java.lang.Object> getDefaultHeaders()
TopicAgentgetDefaultHeaders in interface TopicAgent