org.objectweb.joram.mom.amqp
Class FanoutExchange
java.lang.Object
fr.dyade.aaa.agent.Agent
org.objectweb.joram.mom.amqp.ExchangeAgent
org.objectweb.joram.mom.amqp.FanoutExchange
- All Implemented Interfaces:
- fr.dyade.aaa.agent.AgentMBean, java.io.Serializable
public class FanoutExchange
- extends ExchangeAgent
The fanout exchange type works as follows:
- 1. A message queue binds to the exchange with no arguments.
- 2. A publisher sends the exchange a message.
- 3. The message is passed to the message queue unconditionally.
- See Also:
- Serialized Form
Fields inherited from class fr.dyade.aaa.agent.Agent |
fixed, logmon, nullName |
Constructor Summary |
FanoutExchange(java.lang.String name,
boolean durable)
|
Method Summary |
void |
bind(java.lang.String queue,
java.lang.String routingKey,
java.util.Map arguments)
|
void |
doReact(fr.dyade.aaa.agent.UnknownAgent not)
|
boolean |
isUnused()
|
void |
publish(java.lang.String exchange,
java.lang.String routingKey,
AMQP.Basic.BasicProperties properties,
byte[] body)
|
void |
setArguments(java.util.Map arguments)
|
void |
unbind(java.lang.String queue,
java.lang.String routingKey,
java.util.Map arguments)
|
Methods inherited from class fr.dyade.aaa.agent.Agent |
agentFinalize, delete, delete, deploy, deploy, getAgentId, getId, getLogTopic, getName, isDeployed, isFixed, needToBeCommited, save, sendTo, sendTo, sendTo, setName, setNoSave, setSave, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FanoutExchange
public FanoutExchange(java.lang.String name,
boolean durable)
bind
public void bind(java.lang.String queue,
java.lang.String routingKey,
java.util.Map arguments)
- Specified by:
bind
in class ExchangeAgent
unbind
public void unbind(java.lang.String queue,
java.lang.String routingKey,
java.util.Map arguments)
- Specified by:
unbind
in class ExchangeAgent
publish
public void publish(java.lang.String exchange,
java.lang.String routingKey,
AMQP.Basic.BasicProperties properties,
byte[] body)
- Specified by:
publish
in class ExchangeAgent
setArguments
public void setArguments(java.util.Map arguments)
- Specified by:
setArguments
in class ExchangeAgent
doReact
public void doReact(fr.dyade.aaa.agent.UnknownAgent not)
- Specified by:
doReact
in class ExchangeAgent
isUnused
public boolean isUnused()
- Specified by:
isUnused
in class ExchangeAgent
Copyright © 2005 Scalagent - All rights reserved