public abstract class MessageRouter extends Object
| Constructor and Description |
|---|
MessageRouter(RabbitMQConnector connector,
NameConfiguration nameConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
bindQueues() |
void |
close() |
String |
getRequestExchangeName() |
String |
getResponseExchangeName() |
String |
getResponseQueueName() |
String |
getShoutQueueName() |
String |
getTalkQueueName() |
long |
getTimestamp(com.rabbitmq.client.AMQP.BasicProperties properties) |
String |
getWhisperQueueName() |
void |
initialize() |
abstract void |
installConsumer() |
void |
operate(ChannelOperation channelOperation) |
void |
send(String routingKey,
String exchangeName,
com.rabbitmq.client.AMQP.BasicProperties properties,
byte[] body) |
public MessageRouter(RabbitMQConnector connector, NameConfiguration nameConfiguration)
public abstract void bindQueues()
throws IOException
IOExceptionpublic abstract void installConsumer()
throws IOException
IOExceptionpublic void initialize()
throws IOException,
TimeoutException
IOExceptionTimeoutExceptionpublic String getRequestExchangeName()
public String getResponseExchangeName()
public String getResponseQueueName()
public String getShoutQueueName()
public String getTalkQueueName()
public String getWhisperQueueName()
public void operate(ChannelOperation channelOperation) throws IOException
IOExceptionpublic void send(String routingKey, String exchangeName, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body) throws IOException, TimeoutException
IOExceptionTimeoutExceptionpublic long getTimestamp(com.rabbitmq.client.AMQP.BasicProperties properties)
public void close()
throws IOException,
TimeoutException
IOExceptionTimeoutExceptionCopyright © 2016. All rights reserved.