Class MessageRouter
- java.lang.Object
-
- org.smallmind.phalanx.wire.amqp.rabbitmq.MessageRouter
-
- Direct Known Subclasses:
RequestMessageRouter,ResponseMessageRouter
public abstract class MessageRouter extends Object
-
-
Constructor Summary
Constructors Constructor Description MessageRouter(RabbitMQConnector connector, NameConfiguration nameConfiguration)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidbindQueues()voidclose()StringgetRequestExchangeName()StringgetResponseExchangeName()StringgetResponseQueueName()StringgetShoutQueueName()StringgetTalkQueueName()longgetTimestamp(com.rabbitmq.client.AMQP.BasicProperties properties)StringgetWhisperQueueName()voidinitialize()abstract voidinstallConsumer()voidoperate(ChannelOperation channelOperation)voidsend(String routingKey, String exchangeName, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body)
-
-
-
Constructor Detail
-
MessageRouter
public MessageRouter(RabbitMQConnector connector, NameConfiguration nameConfiguration)
-
-
Method Detail
-
bindQueues
public abstract void bindQueues() throws IOException- Throws:
IOException
-
installConsumer
public abstract void installConsumer() throws IOException- Throws:
IOException
-
initialize
public void initialize() throws IOException, TimeoutException- Throws:
IOExceptionTimeoutException
-
getRequestExchangeName
public String getRequestExchangeName()
-
getResponseExchangeName
public String getResponseExchangeName()
-
getResponseQueueName
public String getResponseQueueName()
-
getShoutQueueName
public String getShoutQueueName()
-
getTalkQueueName
public String getTalkQueueName()
-
getWhisperQueueName
public String getWhisperQueueName()
-
operate
public void operate(ChannelOperation channelOperation) throws IOException
- Throws:
IOException
-
send
public void send(String routingKey, String exchangeName, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body) throws IOException, TimeoutException
- Throws:
IOExceptionTimeoutException
-
getTimestamp
public long getTimestamp(com.rabbitmq.client.AMQP.BasicProperties properties)
-
close
public void close() throws IOException, TimeoutException- Throws:
IOExceptionTimeoutException
-
-