java.lang.Object | |
↳ | com.rabbitmq.client.DefaultConsumer |
Known Direct Subclasses |
Convenience class providing a default implementation of Consumer
.
We anticipate that most Consumer implementations will subclass this class.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance and records its association to the passed-in channel.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieve the channel.
| |||||||||||
Retrieve the consumer tag.
| |||||||||||
No-op implementation of
handleCancel(String) | |||||||||||
No-op implementation of
handleCancelOk(String) . | |||||||||||
Stores the most recently passed-in consumerTag - semantically, there should be only one.
| |||||||||||
No-op implementation of
handleDelivery(String, Envelope, AMQP.BasicProperties, byte[]) . | |||||||||||
No-op implementation of
handleRecoverOk(String) . | |||||||||||
No-op implementation of
handleShutdownSignal(String, ShutdownSignalException) . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.rabbitmq.client.Consumer
|
Constructs a new instance and records its association to the passed-in channel.
channel | the channel to which this consumer is attached |
---|
Retrieve the channel.
Retrieve the consumer tag.
No-op implementation of handleCancel(String)
consumerTag | the defined consumer tag (client- or server-generated) |
---|
IOException |
---|
No-op implementation of handleCancelOk(String)
.
consumerTag | the defined consumer tag (client- or server-generated) |
---|
Stores the most recently passed-in consumerTag - semantically, there should be only one.
consumerTag | the consumer tag associated with the consumer |
---|
No-op implementation of handleDelivery(String, Envelope, AMQP.BasicProperties, byte[])
.
consumerTag | the consumer tag associated with the consumer |
---|---|
envelope | packaging data for the message |
properties | content header data for the message |
body | the message body (opaque, client-specific byte array) |
IOException |
---|
No-op implementation of handleRecoverOk(String)
.
consumerTag | the consumer tag associated with the consumer |
---|
No-op implementation of handleShutdownSignal(String, ShutdownSignalException)
.
consumerTag | the consumer tag associated with the consumer |
---|---|
sig | a ShutdownSignalException indicating the reason for the shut down
|