channel, configuration, connection| Constructor and Description |
|---|
QueueConsumer(AMQPConfiguration config,
com.rabbitmq.client.ConnectionFactory connectionFactory,
DeliveryHandler handler) |
QueueConsumer(AMQPConfiguration config,
com.rabbitmq.client.ConnectionFactory factory,
DeliveryHandler handler,
String bindingKey) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBindingKey() |
org.joda.time.DateTime |
getLastUsage() |
void |
handleCancel(String consumerTag) |
void |
handleCancelOk(String consumerTag) |
void |
handleConsumeOk(String consumerTag)
Called when consumer is registered.
|
void |
handleDelivery(String consumerTag,
com.rabbitmq.client.Envelope env,
com.rabbitmq.client.AMQP.BasicProperties props,
byte[] body)
Called when new message is available.
|
void |
handleRecoverOk(String consumerTag) |
void |
handleShutdownSignal(String consumerTag,
com.rabbitmq.client.ShutdownSignalException arg1) |
void |
registerWithChannel() |
void |
run() |
void |
setLastUsage(org.joda.time.DateTime lastUsage) |
public QueueConsumer(AMQPConfiguration config, com.rabbitmq.client.ConnectionFactory connectionFactory, DeliveryHandler handler) throws IOException
IOExceptionpublic QueueConsumer(AMQPConfiguration config, com.rabbitmq.client.ConnectionFactory factory, DeliveryHandler handler, String bindingKey) throws IOException
IOExceptionpublic void registerWithChannel()
throws IOException
IOExceptionpublic void handleConsumeOk(String consumerTag)
handleConsumeOk in interface com.rabbitmq.client.ConsumerconsumerTag - public void handleDelivery(String consumerTag, com.rabbitmq.client.Envelope env, com.rabbitmq.client.AMQP.BasicProperties props, byte[] body) throws IOException
handleDelivery in interface com.rabbitmq.client.ConsumerconsumerTag - env - props - body - IOExceptionpublic void handleCancel(String consumerTag)
handleCancel in interface com.rabbitmq.client.Consumerpublic void handleCancelOk(String consumerTag)
handleCancelOk in interface com.rabbitmq.client.Consumerpublic void handleRecoverOk(String consumerTag)
handleRecoverOk in interface com.rabbitmq.client.Consumerpublic void handleShutdownSignal(String consumerTag, com.rabbitmq.client.ShutdownSignalException arg1)
handleShutdownSignal in interface com.rabbitmq.client.Consumerpublic String getBindingKey()
public void setLastUsage(org.joda.time.DateTime lastUsage)
public org.joda.time.DateTime getLastUsage()
Copyright © 2015 LeanIX GmbH. All rights reserved.