public class AmqpServiceImpl extends java.lang.Object implements AmqpService
| Constructor and Description |
|---|
AmqpServiceImpl(CryptoServiceImpl cipher) |
| Modifier and Type | Method and Description |
|---|---|
void |
ack(java.lang.Long deliveryTag) |
void |
cancelConsumer() |
void |
connect() |
void |
disconnect() |
void |
reject(java.lang.Long deliveryTag) |
void |
sendData(byte[] payload,
com.rabbitmq.client.AMQP.BasicProperties options) |
void |
sendError(java.lang.Throwable e,
com.rabbitmq.client.AMQP.BasicProperties options,
io.elastic.api.Message originalMessage) |
void |
sendHttpReply(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 |
setStep(Step step) |
void |
setSubscribeChannel(com.rabbitmq.client.Channel subscribeChannel) |
void |
setSubscribeExchangeName(java.lang.String subscribeExchangeName) |
void |
subscribeConsumer(io.elastic.api.Module module) |
@Inject public AmqpServiceImpl(CryptoServiceImpl 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)
@Inject public void setStep(Step step)
public void connect()
connect in interface AmqpServicepublic void disconnect()
disconnect in interface AmqpServicepublic void subscribeConsumer(io.elastic.api.Module module)
subscribeConsumer in interface AmqpServicepublic void cancelConsumer()
cancelConsumer in interface AmqpServicepublic void ack(java.lang.Long deliveryTag)
ack in interface AmqpServicepublic void reject(java.lang.Long deliveryTag)
reject in interface AmqpServicepublic void sendData(byte[] payload,
com.rabbitmq.client.AMQP.BasicProperties options)
sendData in interface AmqpServicepublic void sendHttpReply(byte[] payload,
com.rabbitmq.client.AMQP.BasicProperties options)
sendHttpReply in interface AmqpServicepublic void sendSnapshot(byte[] payload,
com.rabbitmq.client.AMQP.BasicProperties options)
sendSnapshot in interface AmqpServicepublic void sendError(java.lang.Throwable e,
com.rabbitmq.client.AMQP.BasicProperties options,
io.elastic.api.Message originalMessage)
sendError in interface AmqpServicepublic void sendRebound(byte[] payload,
com.rabbitmq.client.AMQP.BasicProperties options)
sendRebound in interface AmqpServicepublic void setSubscribeChannel(com.rabbitmq.client.Channel subscribeChannel)
public void setPublishChannel(com.rabbitmq.client.Channel publishChannel)