public class AMQPWrapper extends java.lang.Object implements AMQPWrapperInterface
| Constructor and Description |
|---|
AMQPWrapper(CipherWrapper cipher) |
| Modifier and Type | Method and Description |
|---|---|
void |
ack(java.lang.Long deliveryTag) |
void |
connect() |
void |
disconnect() |
protected void |
finalize() |
void |
reject(java.lang.Long deliveryTag) |
void |
sendData(byte[] payload,
com.rabbitmq.client.AMQP.BasicProperties options) |
void |
sendError(byte[] payload,
com.rabbitmq.client.AMQP.BasicProperties options) |
void |
sendRebound(byte[] payload,
com.rabbitmq.client.AMQP.BasicProperties options) |
void |
sendSnapshot(byte[] payload,
com.rabbitmq.client.AMQP.BasicProperties options) |
void |
setAmqpUri(java.lang.String amqpUri) |
void |
setDataRoutingKey(java.lang.String dataRoutingKey) |
void |
setErrorRoutingKey(java.lang.String errorRoutingKey) |
void |
setMessageProcessor(MessageProcessor messageProcessor) |
void |
setPrefetchCount(java.lang.Integer prefetchCount) |
void |
setPublishChannel(com.rabbitmq.client.Channel publishChannel) |
void |
setPublishExchangeName(java.lang.String publishExchangeName) |
void |
setReboundRoutingKey(java.lang.String reboundRoutingKey) |
void |
setSnapshotRoutingKey(java.lang.String snapshotRoutingKey) |
void |
setSubscribeChannel(com.rabbitmq.client.Channel subscribeChannel) |
void |
setSubscribeExchangeName(java.lang.String subscribeExchangeName) |
void |
subscribeConsumer() |
@Inject public AMQPWrapper(CipherWrapper cipher)
@Inject public void setAmqpUri(java.lang.String amqpUri)
@Inject public void setSubscribeExchangeName(java.lang.String subscribeExchangeName)
@Inject public void setPublishExchangeName(java.lang.String publishExchangeName)
@Inject public void setDataRoutingKey(java.lang.String dataRoutingKey)
@Inject public void setErrorRoutingKey(java.lang.String errorRoutingKey)
@Inject public void setReboundRoutingKey(java.lang.String reboundRoutingKey)
@Inject public void setSnapshotRoutingKey(java.lang.String snapshotRoutingKey)
@Inject public void setMessageProcessor(MessageProcessor messageProcessor)
@Inject public void setPrefetchCount(java.lang.Integer prefetchCount)
public void connect()
connect in interface AMQPWrapperInterfacepublic void disconnect()
public void subscribeConsumer()
subscribeConsumer in interface AMQPWrapperInterfacepublic void ack(java.lang.Long deliveryTag)
ack in interface AMQPWrapperInterfacepublic void reject(java.lang.Long deliveryTag)
reject in interface AMQPWrapperInterfacepublic void sendData(byte[] payload,
com.rabbitmq.client.AMQP.BasicProperties options)
sendData in interface AMQPWrapperInterfacepublic void sendSnapshot(byte[] payload,
com.rabbitmq.client.AMQP.BasicProperties options)
sendSnapshot in interface AMQPWrapperInterfacepublic void sendError(byte[] payload,
com.rabbitmq.client.AMQP.BasicProperties options)
sendError in interface AMQPWrapperInterfacepublic void sendRebound(byte[] payload,
com.rabbitmq.client.AMQP.BasicProperties options)
sendRebound in interface AMQPWrapperInterfaceprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void setSubscribeChannel(com.rabbitmq.client.Channel subscribeChannel)
public void setPublishChannel(com.rabbitmq.client.Channel publishChannel)