public class PublisherCallbackChannelImpl extends Object implements PublisherCallbackChannel, com.rabbitmq.client.ConfirmListener, com.rabbitmq.client.ReturnCallback, com.rabbitmq.client.ShutdownListener
PublisherCallbackChannel.ListenerRETURN_LISTENER_CORRELATION_KEY, RETURNED_MESSAGE_CORRELATION_KEY| Constructor and Description |
|---|
PublisherCallbackChannelImpl(com.rabbitmq.client.Channel delegate,
ExecutorService executor)
Create a
PublisherCallbackChannelImpl instance based on the provided
delegate and executor. |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
abort(int closeCode,
String closeMessage) |
com.rabbitmq.client.ConfirmListener |
addConfirmListener(com.rabbitmq.client.ConfirmCallback ackCallback,
com.rabbitmq.client.ConfirmCallback nackCallback) |
void |
addConfirmListener(com.rabbitmq.client.ConfirmListener listener) |
void |
addListener(PublisherCallbackChannel.Listener listener)
Add the listener and return the internal map of pending confirmations for that listener.
|
void |
addPendingConfirm(PublisherCallbackChannel.Listener listener,
long seq,
PendingConfirm pendingConfirm)
Adds a pending confirmation to this channel's map.
|
com.rabbitmq.client.ReturnListener |
addReturnListener(com.rabbitmq.client.ReturnCallback returnCallback)
Added to the 5.0.x client.
|
void |
addReturnListener(com.rabbitmq.client.ReturnListener listener) |
void |
addShutdownListener(com.rabbitmq.client.ShutdownListener listener) |
CompletableFuture<com.rabbitmq.client.Command> |
asyncCompletableRpc(com.rabbitmq.client.Method method)
Added to the 5.0.x client.
|
void |
asyncRpc(com.rabbitmq.client.Method method) |
void |
basicAck(long deliveryTag,
boolean multiple) |
void |
basicCancel(String consumerTag) |
String |
basicConsume(String queue,
boolean autoAck,
com.rabbitmq.client.Consumer callback) |
String |
basicConsume(String queue,
boolean autoAck,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.CancelCallback cancelCallback)
Added to the 5.0.x client.
|
String |
basicConsume(String queue,
boolean autoAck,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.CancelCallback cancelCallback,
com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
Added to the 5.0.x client.
|
String |
basicConsume(String queue,
boolean autoAck,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
Added to the 5.0.x client.
|
String |
basicConsume(String queue,
boolean autoAck,
Map<String,Object> arguments,
com.rabbitmq.client.Consumer callback)
Added to the 3.3.x client.
|
String |
basicConsume(String queue,
boolean autoAck,
Map<String,Object> arguments,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.CancelCallback cancelCallback)
Added to the 5.0.x client.
|
String |
basicConsume(String queue,
boolean autoAck,
Map<String,Object> arguments,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.CancelCallback cancelCallback,
com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
Added to the 5.0.x client.
|
String |
basicConsume(String queue,
boolean autoAck,
Map<String,Object> arguments,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
Added to the 5.0.x client.
|
String |
basicConsume(String queue,
boolean autoAck,
String consumerTag,
boolean noLocal,
boolean exclusive,
Map<String,Object> arguments,
com.rabbitmq.client.Consumer callback) |
String |
basicConsume(String queue,
boolean autoAck,
String consumerTag,
boolean noLocal,
boolean exclusive,
Map<String,Object> arguments,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.CancelCallback cancelCallback)
Added to the 5.0.x client.
|
String |
basicConsume(String queue,
boolean autoAck,
String consumerTag,
boolean noLocal,
boolean exclusive,
Map<String,Object> arguments,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.CancelCallback cancelCallback,
com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
Added to the 5.0.x client.
|
String |
basicConsume(String queue,
boolean autoAck,
String consumerTag,
boolean noLocal,
boolean exclusive,
Map<String,Object> arguments,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
Added to the 5.0.x client.
|
String |
basicConsume(String queue,
boolean autoAck,
String consumerTag,
com.rabbitmq.client.Consumer callback) |
String |
basicConsume(String queue,
boolean autoAck,
String consumerTag,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.CancelCallback cancelCallback)
Added to the 5.0.x client.
|
String |
basicConsume(String queue,
boolean autoAck,
String consumerTag,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.CancelCallback cancelCallback,
com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
Added to the 5.0.x client.
|
String |
basicConsume(String queue,
boolean autoAck,
String consumerTag,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
Added to the 5.0.x client.
|
String |
basicConsume(String queue,
com.rabbitmq.client.Consumer callback) |
String |
basicConsume(String queue,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.CancelCallback cancelCallback)
Added to the 5.0.x client.
|
String |
basicConsume(String queue,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.CancelCallback cancelCallback,
com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
Added to the 5.0.x client.
|
String |
basicConsume(String queue,
com.rabbitmq.client.DeliverCallback deliverCallback,
com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
Added to the 5.0.x client.
|
com.rabbitmq.client.GetResponse |
basicGet(String queue,
boolean autoAck) |
void |
basicNack(long deliveryTag,
boolean multiple,
boolean requeue) |
void |
basicPublish(String exchange,
String routingKey,
com.rabbitmq.client.AMQP.BasicProperties props,
byte[] body) |
void |
basicPublish(String exchange,
String routingKey,
boolean mandatory,
com.rabbitmq.client.AMQP.BasicProperties props,
byte[] body) |
void |
basicPublish(String exchange,
String routingKey,
boolean mandatory,
boolean immediate,
com.rabbitmq.client.AMQP.BasicProperties props,
byte[] body) |
void |
basicQos(int prefetchCount) |
void |
basicQos(int prefetchCount,
boolean global)
Added to the 3.3.x client.
|
void |
basicQos(int prefetchSize,
int prefetchCount,
boolean global) |
com.rabbitmq.client.AMQP.Basic.RecoverOk |
basicRecover() |
com.rabbitmq.client.AMQP.Basic.RecoverOk |
basicRecover(boolean requeue) |
void |
basicReject(long deliveryTag,
boolean requeue) |
void |
clearConfirmListeners() |
void |
clearReturnListeners() |
void |
close() |
void |
close(int closeCode,
String closeMessage) |
com.rabbitmq.client.AMQP.Confirm.SelectOk |
confirmSelect() |
long |
consumerCount(String queue) |
boolean |
equals(Object obj) |
com.rabbitmq.client.AMQP.Exchange.BindOk |
exchangeBind(String destination,
String source,
String routingKey) |
com.rabbitmq.client.AMQP.Exchange.BindOk |
exchangeBind(String destination,
String source,
String routingKey,
Map<String,Object> arguments) |
void |
exchangeBindNoWait(String destination,
String source,
String routingKey,
Map<String,Object> arguments) |
com.rabbitmq.client.AMQP.Exchange.DeclareOk |
exchangeDeclare(String exchange,
com.rabbitmq.client.BuiltinExchangeType type) |
com.rabbitmq.client.AMQP.Exchange.DeclareOk |
exchangeDeclare(String exchange,
com.rabbitmq.client.BuiltinExchangeType type,
boolean durable) |
com.rabbitmq.client.AMQP.Exchange.DeclareOk |
exchangeDeclare(String exchange,
com.rabbitmq.client.BuiltinExchangeType type,
boolean durable,
boolean autoDelete,
boolean internal,
Map<String,Object> arguments) |
com.rabbitmq.client.AMQP.Exchange.DeclareOk |
exchangeDeclare(String exchange,
com.rabbitmq.client.BuiltinExchangeType type,
boolean durable,
boolean autoDelete,
Map<String,Object> arguments) |
com.rabbitmq.client.AMQP.Exchange.DeclareOk |
exchangeDeclare(String exchange,
String type) |
com.rabbitmq.client.AMQP.Exchange.DeclareOk |
exchangeDeclare(String exchange,
String type,
boolean durable) |
com.rabbitmq.client.AMQP.Exchange.DeclareOk |
exchangeDeclare(String exchange,
String type,
boolean durable,
boolean autoDelete,
boolean internal,
Map<String,Object> arguments) |
com.rabbitmq.client.AMQP.Exchange.DeclareOk |
exchangeDeclare(String exchange,
String type,
boolean durable,
boolean autoDelete,
Map<String,Object> arguments) |
void |
exchangeDeclareNoWait(String exchange,
com.rabbitmq.client.BuiltinExchangeType type,
boolean durable,
boolean autoDelete,
boolean internal,
Map<String,Object> arguments) |
void |
exchangeDeclareNoWait(String exchange,
String type,
boolean durable,
boolean autoDelete,
boolean internal,
Map<String,Object> arguments) |
com.rabbitmq.client.AMQP.Exchange.DeclareOk |
exchangeDeclarePassive(String name) |
com.rabbitmq.client.AMQP.Exchange.DeleteOk |
exchangeDelete(String exchange) |
com.rabbitmq.client.AMQP.Exchange.DeleteOk |
exchangeDelete(String exchange,
boolean ifUnused) |
void |
exchangeDeleteNoWait(String exchange,
boolean ifUnused) |
com.rabbitmq.client.AMQP.Exchange.UnbindOk |
exchangeUnbind(String destination,
String source,
String routingKey) |
com.rabbitmq.client.AMQP.Exchange.UnbindOk |
exchangeUnbind(String destination,
String source,
String routingKey,
Map<String,Object> arguments) |
void |
exchangeUnbindNoWait(String destination,
String source,
String routingKey,
Map<String,Object> arguments) |
Collection<PendingConfirm> |
expire(PublisherCallbackChannel.Listener listener,
long cutoffTime)
Expire (remove) any
PendingConfirms created before cutoffTime for the
supplied listener and return them to the caller. |
static PublisherCallbackChannelFactory |
factory() |
int |
getChannelNumber() |
com.rabbitmq.client.ShutdownSignalException |
getCloseReason() |
com.rabbitmq.client.Connection |
getConnection() |
com.rabbitmq.client.Consumer |
getDefaultConsumer() |
com.rabbitmq.client.Channel |
getDelegate()
Use this to invoke methods on the underlying rabbit client
Channel that
are not supported by this implementation. |
long |
getNextPublishSeqNo() |
int |
getPendingConfirmsCount()
Get the total pending confirms count.
|
int |
getPendingConfirmsCount(PublisherCallbackChannel.Listener listener)
Get the
PendingConfirms count. |
void |
handle(com.rabbitmq.client.Return returned) |
void |
handleAck(long seq,
boolean multiple) |
void |
handleNack(long seq,
boolean multiple) |
int |
hashCode() |
boolean |
isOpen() |
long |
messageCount(String queue) |
void |
notifyListeners() |
com.rabbitmq.client.AMQP.Queue.BindOk |
queueBind(String queue,
String exchange,
String routingKey) |
com.rabbitmq.client.AMQP.Queue.BindOk |
queueBind(String queue,
String exchange,
String routingKey,
Map<String,Object> arguments) |
void |
queueBindNoWait(String queue,
String exchange,
String routingKey,
Map<String,Object> arguments) |
com.rabbitmq.client.AMQP.Queue.DeclareOk |
queueDeclare() |
com.rabbitmq.client.AMQP.Queue.DeclareOk |
queueDeclare(String queue,
boolean durable,
boolean exclusive,
boolean autoDelete,
Map<String,Object> arguments) |
void |
queueDeclareNoWait(String queue,
boolean durable,
boolean exclusive,
boolean autoDelete,
Map<String,Object> arguments) |
com.rabbitmq.client.AMQP.Queue.DeclareOk |
queueDeclarePassive(String queue) |
com.rabbitmq.client.AMQP.Queue.DeleteOk |
queueDelete(String queue) |
com.rabbitmq.client.AMQP.Queue.DeleteOk |
queueDelete(String queue,
boolean ifUnused,
boolean ifEmpty) |
void |
queueDeleteNoWait(String queue,
boolean ifUnused,
boolean ifEmpty) |
com.rabbitmq.client.AMQP.Queue.PurgeOk |
queuePurge(String queue) |
com.rabbitmq.client.AMQP.Queue.UnbindOk |
queueUnbind(String queue,
String exchange,
String routingKey) |
com.rabbitmq.client.AMQP.Queue.UnbindOk |
queueUnbind(String queue,
String exchange,
String routingKey,
Map<String,Object> arguments) |
boolean |
removeConfirmListener(com.rabbitmq.client.ConfirmListener listener) |
boolean |
removeReturnListener(com.rabbitmq.client.ReturnListener listener) |
void |
removeShutdownListener(com.rabbitmq.client.ShutdownListener listener) |
com.rabbitmq.client.Command |
rpc(com.rabbitmq.client.Method method) |
void |
setAfterAckCallback(Consumer<com.rabbitmq.client.Channel> callback)
Set a callback to be invoked after the ack/nack has been handled.
|
void |
setDefaultConsumer(com.rabbitmq.client.Consumer consumer) |
void |
shutdownCompleted(com.rabbitmq.client.ShutdownSignalException cause) |
String |
toString() |
com.rabbitmq.client.AMQP.Tx.CommitOk |
txCommit() |
com.rabbitmq.client.AMQP.Tx.RollbackOk |
txRollback() |
com.rabbitmq.client.AMQP.Tx.SelectOk |
txSelect() |
boolean |
waitForConfirms() |
boolean |
waitForConfirms(long timeout) |
void |
waitForConfirmsOrDie() |
void |
waitForConfirmsOrDie(long timeout) |
public PublisherCallbackChannelImpl(com.rabbitmq.client.Channel delegate,
ExecutorService executor)
PublisherCallbackChannelImpl instance based on the provided
delegate and executor.delegate - the delegate channel.executor - the executor.public void setAfterAckCallback(Consumer<com.rabbitmq.client.Channel> callback)
PublisherCallbackChannelsetAfterAckCallback in interface PublisherCallbackChannelcallback - the callback.public void addShutdownListener(com.rabbitmq.client.ShutdownListener listener)
addShutdownListener in interface com.rabbitmq.client.ShutdownNotifierpublic void removeShutdownListener(com.rabbitmq.client.ShutdownListener listener)
removeShutdownListener in interface com.rabbitmq.client.ShutdownNotifierpublic com.rabbitmq.client.ShutdownSignalException getCloseReason()
getCloseReason in interface com.rabbitmq.client.ShutdownNotifierpublic void notifyListeners()
notifyListeners in interface com.rabbitmq.client.ShutdownNotifierpublic boolean isOpen()
isOpen in interface com.rabbitmq.client.ShutdownNotifierpublic int getChannelNumber()
getChannelNumber in interface com.rabbitmq.client.Channelpublic com.rabbitmq.client.Connection getConnection()
getConnection in interface com.rabbitmq.client.Channelpublic void close(int closeCode,
String closeMessage)
throws IOException,
TimeoutException
close in interface com.rabbitmq.client.ChannelIOExceptionTimeoutExceptionpublic void abort()
throws IOException
abort in interface com.rabbitmq.client.ChannelIOExceptionpublic void abort(int closeCode,
String closeMessage)
throws IOException
abort in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.Consumer getDefaultConsumer()
getDefaultConsumer in interface com.rabbitmq.client.Channelpublic void setDefaultConsumer(com.rabbitmq.client.Consumer consumer)
setDefaultConsumer in interface com.rabbitmq.client.Channelpublic void basicQos(int prefetchSize,
int prefetchCount,
boolean global)
throws IOException
basicQos in interface com.rabbitmq.client.ChannelIOExceptionpublic void basicQos(int prefetchCount,
boolean global)
throws IOException
basicQos in interface com.rabbitmq.client.ChannelIOExceptionpublic void basicQos(int prefetchCount)
throws IOException
basicQos in interface com.rabbitmq.client.ChannelIOExceptionpublic void basicPublish(String exchange, String routingKey, com.rabbitmq.client.AMQP.BasicProperties props, byte[] body) throws IOException
basicPublish in interface com.rabbitmq.client.ChannelIOExceptionpublic void basicPublish(String exchange, String routingKey, boolean mandatory, boolean immediate, com.rabbitmq.client.AMQP.BasicProperties props, byte[] body) throws IOException
basicPublish in interface com.rabbitmq.client.ChannelIOExceptionpublic void basicPublish(String exchange, String routingKey, boolean mandatory, com.rabbitmq.client.AMQP.BasicProperties props, byte[] body) throws IOException
basicPublish in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, String type) throws IOException
exchangeDeclare in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, com.rabbitmq.client.BuiltinExchangeType type) throws IOException
exchangeDeclare in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, String type, boolean durable) throws IOException
exchangeDeclare in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, com.rabbitmq.client.BuiltinExchangeType type, boolean durable) throws IOException
exchangeDeclare in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, String type, boolean durable, boolean autoDelete, Map<String,Object> arguments) throws IOException
exchangeDeclare in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, com.rabbitmq.client.BuiltinExchangeType type, boolean durable, boolean autoDelete, Map<String,Object> arguments) throws IOException
exchangeDeclare in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, String type, boolean durable, boolean autoDelete, boolean internal, Map<String,Object> arguments) throws IOException
exchangeDeclare in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, com.rabbitmq.client.BuiltinExchangeType type, boolean durable, boolean autoDelete, boolean internal, Map<String,Object> arguments) throws IOException
exchangeDeclare in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclarePassive(String name) throws IOException
exchangeDeclarePassive in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.DeleteOk exchangeDelete(String exchange, boolean ifUnused) throws IOException
exchangeDelete in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.DeleteOk exchangeDelete(String exchange) throws IOException
exchangeDelete in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.BindOk exchangeBind(String destination, String source, String routingKey) throws IOException
exchangeBind in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.BindOk exchangeBind(String destination, String source, String routingKey, Map<String,Object> arguments) throws IOException
exchangeBind in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.UnbindOk exchangeUnbind(String destination, String source, String routingKey) throws IOException
exchangeUnbind in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Exchange.UnbindOk exchangeUnbind(String destination, String source, String routingKey, Map<String,Object> arguments) throws IOException
exchangeUnbind in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Queue.DeclareOk queueDeclare()
throws IOException
queueDeclare in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, boolean autoDelete, Map<String,Object> arguments) throws IOException
queueDeclare in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Queue.DeclareOk queueDeclarePassive(String queue) throws IOException
queueDeclarePassive in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Queue.DeleteOk queueDelete(String queue) throws IOException
queueDelete in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Queue.DeleteOk queueDelete(String queue, boolean ifUnused, boolean ifEmpty) throws IOException
queueDelete in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Queue.BindOk queueBind(String queue, String exchange, String routingKey) throws IOException
queueBind in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Queue.BindOk queueBind(String queue, String exchange, String routingKey, Map<String,Object> arguments) throws IOException
queueBind in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Queue.UnbindOk queueUnbind(String queue, String exchange, String routingKey) throws IOException
queueUnbind in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Queue.UnbindOk queueUnbind(String queue, String exchange, String routingKey, Map<String,Object> arguments) throws IOException
queueUnbind in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Queue.PurgeOk queuePurge(String queue) throws IOException
queuePurge in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.GetResponse basicGet(String queue, boolean autoAck) throws IOException
basicGet in interface com.rabbitmq.client.ChannelIOExceptionpublic void basicAck(long deliveryTag,
boolean multiple)
throws IOException
basicAck in interface com.rabbitmq.client.ChannelIOExceptionpublic void basicNack(long deliveryTag,
boolean multiple,
boolean requeue)
throws IOException
basicNack in interface com.rabbitmq.client.ChannelIOExceptionpublic void basicReject(long deliveryTag,
boolean requeue)
throws IOException
basicReject in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, com.rabbitmq.client.Consumer callback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, com.rabbitmq.client.Consumer callback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, String consumerTag, com.rabbitmq.client.Consumer callback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, String consumerTag, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, String consumerTag, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, String consumerTag, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, Map<String,Object> arguments, com.rabbitmq.client.Consumer callback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, Map<String,Object> arguments, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, Map<String,Object> arguments, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, Map<String,Object> arguments, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, String consumerTag, boolean noLocal, boolean exclusive, Map<String,Object> arguments, com.rabbitmq.client.Consumer callback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, String consumerTag, boolean noLocal, boolean exclusive, Map<String,Object> arguments, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, String consumerTag, boolean noLocal, boolean exclusive, Map<String,Object> arguments, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic String basicConsume(String queue, boolean autoAck, String consumerTag, boolean noLocal, boolean exclusive, Map<String,Object> arguments, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback) throws IOException
basicConsume in interface com.rabbitmq.client.ChannelIOExceptionpublic void basicCancel(String consumerTag) throws IOException
basicCancel in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Basic.RecoverOk basicRecover()
throws IOException
basicRecover in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Basic.RecoverOk basicRecover(boolean requeue)
throws IOException
basicRecover in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Tx.SelectOk txSelect()
throws IOException
txSelect in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Tx.CommitOk txCommit()
throws IOException
txCommit in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Tx.RollbackOk txRollback()
throws IOException
txRollback in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.AMQP.Confirm.SelectOk confirmSelect()
throws IOException
confirmSelect in interface com.rabbitmq.client.ChannelIOExceptionpublic long getNextPublishSeqNo()
getNextPublishSeqNo in interface com.rabbitmq.client.Channelpublic boolean waitForConfirms()
throws InterruptedException
waitForConfirms in interface com.rabbitmq.client.ChannelInterruptedExceptionpublic boolean waitForConfirms(long timeout)
throws InterruptedException,
TimeoutException
waitForConfirms in interface com.rabbitmq.client.ChannelInterruptedExceptionTimeoutExceptionpublic void waitForConfirmsOrDie()
throws IOException,
InterruptedException
waitForConfirmsOrDie in interface com.rabbitmq.client.ChannelIOExceptionInterruptedExceptionpublic void waitForConfirmsOrDie(long timeout)
throws IOException,
InterruptedException,
TimeoutException
waitForConfirmsOrDie in interface com.rabbitmq.client.ChannelIOExceptionInterruptedExceptionTimeoutExceptionpublic void asyncRpc(com.rabbitmq.client.Method method)
throws IOException
asyncRpc in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.Command rpc(com.rabbitmq.client.Method method)
throws IOException
rpc in interface com.rabbitmq.client.ChannelIOExceptionpublic void addConfirmListener(com.rabbitmq.client.ConfirmListener listener)
addConfirmListener in interface com.rabbitmq.client.Channelpublic com.rabbitmq.client.ConfirmListener addConfirmListener(com.rabbitmq.client.ConfirmCallback ackCallback,
com.rabbitmq.client.ConfirmCallback nackCallback)
addConfirmListener in interface com.rabbitmq.client.Channelpublic boolean removeConfirmListener(com.rabbitmq.client.ConfirmListener listener)
removeConfirmListener in interface com.rabbitmq.client.Channelpublic void clearConfirmListeners()
clearConfirmListeners in interface com.rabbitmq.client.Channelpublic void addReturnListener(com.rabbitmq.client.ReturnListener listener)
addReturnListener in interface com.rabbitmq.client.Channelpublic com.rabbitmq.client.ReturnListener addReturnListener(com.rabbitmq.client.ReturnCallback returnCallback)
addReturnListener in interface com.rabbitmq.client.Channelpublic boolean removeReturnListener(com.rabbitmq.client.ReturnListener listener)
removeReturnListener in interface com.rabbitmq.client.Channelpublic void clearReturnListeners()
clearReturnListeners in interface com.rabbitmq.client.Channelpublic void exchangeBindNoWait(String destination, String source, String routingKey, Map<String,Object> arguments) throws IOException
exchangeBindNoWait in interface com.rabbitmq.client.ChannelIOExceptionpublic void exchangeDeclareNoWait(String exchange, String type, boolean durable, boolean autoDelete, boolean internal, Map<String,Object> arguments) throws IOException
exchangeDeclareNoWait in interface com.rabbitmq.client.ChannelIOExceptionpublic void exchangeDeclareNoWait(String exchange, com.rabbitmq.client.BuiltinExchangeType type, boolean durable, boolean autoDelete, boolean internal, Map<String,Object> arguments) throws IOException
exchangeDeclareNoWait in interface com.rabbitmq.client.ChannelIOExceptionpublic void exchangeDeleteNoWait(String exchange, boolean ifUnused) throws IOException
exchangeDeleteNoWait in interface com.rabbitmq.client.ChannelIOExceptionpublic void exchangeUnbindNoWait(String destination, String source, String routingKey, Map<String,Object> arguments) throws IOException
exchangeUnbindNoWait in interface com.rabbitmq.client.ChannelIOExceptionpublic void queueBindNoWait(String queue, String exchange, String routingKey, Map<String,Object> arguments) throws IOException
queueBindNoWait in interface com.rabbitmq.client.ChannelIOExceptionpublic void queueDeclareNoWait(String queue, boolean durable, boolean exclusive, boolean autoDelete, Map<String,Object> arguments) throws IOException
queueDeclareNoWait in interface com.rabbitmq.client.ChannelIOExceptionpublic void queueDeleteNoWait(String queue, boolean ifUnused, boolean ifEmpty) throws IOException
queueDeleteNoWait in interface com.rabbitmq.client.ChannelIOExceptionpublic long consumerCount(String queue) throws IOException
consumerCount in interface com.rabbitmq.client.ChannelIOExceptionpublic CompletableFuture<com.rabbitmq.client.Command> asyncCompletableRpc(com.rabbitmq.client.Method method) throws IOException
asyncCompletableRpc in interface com.rabbitmq.client.ChannelIOExceptionpublic long messageCount(String queue) throws IOException
messageCount in interface com.rabbitmq.client.ChannelIOExceptionpublic com.rabbitmq.client.Channel getDelegate()
PublisherCallbackChannelChannel that
are not supported by this implementation.getDelegate in interface PublisherCallbackChannelChannel.public void close()
throws IOException,
TimeoutException
close in interface com.rabbitmq.client.Channelclose in interface AutoCloseableIOExceptionTimeoutExceptionpublic int getPendingConfirmsCount(PublisherCallbackChannel.Listener listener)
PublisherCallbackChannelPendingConfirms count.getPendingConfirmsCount in interface PublisherCallbackChannellistener - the listener.public int getPendingConfirmsCount()
PublisherCallbackChannelgetPendingConfirmsCount in interface PublisherCallbackChannelpublic void addListener(PublisherCallbackChannel.Listener listener)
addListener in interface PublisherCallbackChannellistener - the listener.public Collection<PendingConfirm> expire(PublisherCallbackChannel.Listener listener, long cutoffTime)
PublisherCallbackChannelPendingConfirms created before cutoffTime for the
supplied listener and return them to the caller.expire in interface PublisherCallbackChannellistener - the listener.cutoffTime - the time before which expired messages were created.public void handleAck(long seq,
boolean multiple)
handleAck in interface com.rabbitmq.client.ConfirmListenerpublic void handleNack(long seq,
boolean multiple)
handleNack in interface com.rabbitmq.client.ConfirmListenerpublic void addPendingConfirm(PublisherCallbackChannel.Listener listener, long seq, PendingConfirm pendingConfirm)
PublisherCallbackChanneladdPendingConfirm in interface PublisherCallbackChannellistener - The listener.seq - The key to the map.pendingConfirm - The PendingConfirm object.public void handle(com.rabbitmq.client.Return returned)
handle in interface com.rabbitmq.client.ReturnCallbackpublic void shutdownCompleted(com.rabbitmq.client.ShutdownSignalException cause)
shutdownCompleted in interface com.rabbitmq.client.ShutdownListenerpublic static PublisherCallbackChannelFactory factory()