public static interface PublisherCallbackChannel.Listener
| Modifier and Type | Method and Description |
|---|---|
String |
getUUID()
Returns the UUID used to identify this Listener for returns.
|
void |
handleConfirm(PendingConfirm pendingConfirm,
boolean ack)
Invoked by the channel when a confirm is received.
|
default void |
handleReturn(int replyCode,
String replyText,
String exchange,
String routingKey,
com.rabbitmq.client.AMQP.BasicProperties properties,
byte[] body)
Deprecated.
in favor of
handleReturn(Return). |
default void |
handleReturn(com.rabbitmq.client.Return returned)
Handle a returned message.
|
boolean |
isConfirmListener() |
boolean |
isReturnListener() |
void |
revoke(com.rabbitmq.client.Channel channel)
When called, this listener should remove all references to the
channel - it will no longer be invoked by the channel.
|
void handleConfirm(PendingConfirm pendingConfirm, boolean ack)
pendingConfirm - The pending confirmation, containing
correlation data.ack - true when 'ack', false when 'nack'.@Deprecated default void handleReturn(int replyCode, String replyText, String exchange, String routingKey, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body)
handleReturn(Return).replyCode - the reply code.replyText - the reply text.exchange - the exchange.routingKey - the routing key.properties - the message properties.body - the message body.default void handleReturn(com.rabbitmq.client.Return returned)
returned - the message and metadata.void revoke(com.rabbitmq.client.Channel channel)
channel - The channel.String getUUID()
boolean isConfirmListener()
boolean isReturnListener()