public interface PublisherCallbackChannel
extends com.rabbitmq.client.Channel
Modifier and Type | Interface and Description |
---|---|
static interface |
PublisherCallbackChannel.Listener
Listeners implementing this interface can participate
in publisher confirms received from multiple channels,
by invoking addListener on each channel.
|
Modifier and Type | Field and Description |
---|---|
static String |
RETURN_LISTENER_CORRELATION_KEY
Header used to determine which listener to invoke for a returned message.
|
static String |
RETURNED_MESSAGE_CORRELATION_KEY
Header used to locate a pending confirm to which to attach a returned message.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(PublisherCallbackChannel.Listener listener)
|
void |
addPendingConfirm(PublisherCallbackChannel.Listener listener,
long seq,
PendingConfirm pendingConfirm)
Adds a pending confirmation to this channel's map.
|
Collection<PendingConfirm> |
expire(PublisherCallbackChannel.Listener listener,
long cutoffTime)
Expire (remove) any
PendingConfirm s created before cutoffTime for the
supplied listener and return them to the caller. |
com.rabbitmq.client.Channel |
getDelegate()
Use this to invoke methods on the underlying rabbit client
Channel that
are not supported by this implementation. |
int |
getPendingConfirmsCount()
Get the total pending confirms count.
|
int |
getPendingConfirmsCount(PublisherCallbackChannel.Listener listener)
Get the
PendingConfirm s count. |
void |
setAfterAckCallback(Consumer<com.rabbitmq.client.Channel> callback)
Set a callback to be invoked after the ack/nack has been handled.
|
abort, abort, addConfirmListener, addConfirmListener, addReturnListener, addReturnListener, asyncCompletableRpc, asyncRpc, basicAck, basicCancel, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicConsume, basicGet, basicNack, basicPublish, basicPublish, basicPublish, basicQos, basicQos, basicQos, basicRecover, basicRecover, basicReject, clearConfirmListeners, clearReturnListeners, close, close, confirmSelect, consumerCount, exchangeBind, exchangeBind, exchangeBindNoWait, exchangeDeclare, exchangeDeclare, exchangeDeclare, exchangeDeclare, exchangeDeclare, exchangeDeclare, exchangeDeclare, exchangeDeclare, exchangeDeclareNoWait, exchangeDeclareNoWait, exchangeDeclarePassive, exchangeDelete, exchangeDelete, exchangeDeleteNoWait, exchangeUnbind, exchangeUnbind, exchangeUnbindNoWait, getChannelNumber, getConnection, getDefaultConsumer, getNextPublishSeqNo, messageCount, queueBind, queueBind, queueBindNoWait, queueDeclare, queueDeclare, queueDeclareNoWait, queueDeclarePassive, queueDelete, queueDelete, queueDeleteNoWait, queuePurge, queueUnbind, queueUnbind, removeConfirmListener, removeReturnListener, rpc, setDefaultConsumer, txCommit, txRollback, txSelect, waitForConfirms, waitForConfirms, waitForConfirmsOrDie, waitForConfirmsOrDie
static final String RETURN_LISTENER_CORRELATION_KEY
static final String RETURNED_MESSAGE_CORRELATION_KEY
void addListener(PublisherCallbackChannel.Listener listener)
listener
- The Listener.Collection<PendingConfirm> expire(PublisherCallbackChannel.Listener listener, long cutoffTime)
PendingConfirm
s created before cutoffTime for the
supplied listener and return them to the caller.listener
- the listener.cutoffTime
- the time before which expired messages were created.int getPendingConfirmsCount(PublisherCallbackChannel.Listener listener)
PendingConfirm
s count.listener
- the listener.int getPendingConfirmsCount()
void addPendingConfirm(PublisherCallbackChannel.Listener listener, long seq, PendingConfirm pendingConfirm)
listener
- The listener.seq
- The key to the map.pendingConfirm
- The PendingConfirm object.com.rabbitmq.client.Channel getDelegate()
Channel
that
are not supported by this implementation.Channel
.void setAfterAckCallback(Consumer<com.rabbitmq.client.Channel> callback)
callback
- the callback.