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 java.lang.String |
RETURN_CORRELATION_KEY |
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.
|
java.util.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(PublisherCallbackChannel.Listener listener)
Get the
PendingConfirm s count. |
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 java.lang.String RETURN_CORRELATION_KEY
void addListener(PublisherCallbackChannel.Listener listener)
listener
- The Listener.java.util.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.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
.