public class PublisherCallbackChannelImpl extends Object implements PublisherCallbackChannel, com.rabbitmq.client.ConfirmListener, com.rabbitmq.client.ReturnListener, com.rabbitmq.client.ShutdownListener
PublisherCallbackChannel.Listener
RETURN_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
PendingConfirm s 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
PendingConfirm s count. |
void |
handleAck(long seq,
boolean multiple) |
void |
handleNack(long seq,
boolean multiple) |
void |
handleReturn(int replyCode,
String replyText,
String exchange,
String routingKey,
com.rabbitmq.client.AMQP.BasicProperties properties,
byte[] body) |
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)
PublisherCallbackChannel
setAfterAckCallback
in interface PublisherCallbackChannel
callback
- the callback.public void addShutdownListener(com.rabbitmq.client.ShutdownListener listener)
addShutdownListener
in interface com.rabbitmq.client.ShutdownNotifier
public void removeShutdownListener(com.rabbitmq.client.ShutdownListener listener)
removeShutdownListener
in interface com.rabbitmq.client.ShutdownNotifier
public com.rabbitmq.client.ShutdownSignalException getCloseReason()
getCloseReason
in interface com.rabbitmq.client.ShutdownNotifier
public void notifyListeners()
notifyListeners
in interface com.rabbitmq.client.ShutdownNotifier
public boolean isOpen()
isOpen
in interface com.rabbitmq.client.ShutdownNotifier
public int getChannelNumber()
getChannelNumber
in interface com.rabbitmq.client.Channel
public com.rabbitmq.client.Connection getConnection()
getConnection
in interface com.rabbitmq.client.Channel
public void close(int closeCode, String closeMessage) throws IOException, TimeoutException
close
in interface com.rabbitmq.client.Channel
IOException
TimeoutException
public void abort() throws IOException
abort
in interface com.rabbitmq.client.Channel
IOException
public void abort(int closeCode, String closeMessage) throws IOException
abort
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.Consumer getDefaultConsumer()
getDefaultConsumer
in interface com.rabbitmq.client.Channel
public void setDefaultConsumer(com.rabbitmq.client.Consumer consumer)
setDefaultConsumer
in interface com.rabbitmq.client.Channel
public void basicQos(int prefetchSize, int prefetchCount, boolean global) throws IOException
basicQos
in interface com.rabbitmq.client.Channel
IOException
public void basicQos(int prefetchCount, boolean global) throws IOException
basicQos
in interface com.rabbitmq.client.Channel
IOException
public void basicQos(int prefetchCount) throws IOException
basicQos
in interface com.rabbitmq.client.Channel
IOException
public void basicPublish(String exchange, String routingKey, com.rabbitmq.client.AMQP.BasicProperties props, byte[] body) throws IOException
basicPublish
in interface com.rabbitmq.client.Channel
IOException
public 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.Channel
IOException
public void basicPublish(String exchange, String routingKey, boolean mandatory, com.rabbitmq.client.AMQP.BasicProperties props, byte[] body) throws IOException
basicPublish
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, String type) throws IOException
exchangeDeclare
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, com.rabbitmq.client.BuiltinExchangeType type) throws IOException
exchangeDeclare
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, String type, boolean durable) throws IOException
exchangeDeclare
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, com.rabbitmq.client.BuiltinExchangeType type, boolean durable) throws IOException
exchangeDeclare
in interface com.rabbitmq.client.Channel
IOException
public 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.Channel
IOException
public 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.Channel
IOException
public 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.Channel
IOException
public 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.Channel
IOException
public com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclarePassive(String name) throws IOException
exchangeDeclarePassive
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Exchange.DeleteOk exchangeDelete(String exchange, boolean ifUnused) throws IOException
exchangeDelete
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Exchange.DeleteOk exchangeDelete(String exchange) throws IOException
exchangeDelete
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Exchange.BindOk exchangeBind(String destination, String source, String routingKey) throws IOException
exchangeBind
in interface com.rabbitmq.client.Channel
IOException
public 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.Channel
IOException
public com.rabbitmq.client.AMQP.Exchange.UnbindOk exchangeUnbind(String destination, String source, String routingKey) throws IOException
exchangeUnbind
in interface com.rabbitmq.client.Channel
IOException
public 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.Channel
IOException
public com.rabbitmq.client.AMQP.Queue.DeclareOk queueDeclare() throws IOException
queueDeclare
in interface com.rabbitmq.client.Channel
IOException
public 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.Channel
IOException
public com.rabbitmq.client.AMQP.Queue.DeclareOk queueDeclarePassive(String queue) throws IOException
queueDeclarePassive
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Queue.DeleteOk queueDelete(String queue) throws IOException
queueDelete
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Queue.DeleteOk queueDelete(String queue, boolean ifUnused, boolean ifEmpty) throws IOException
queueDelete
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Queue.BindOk queueBind(String queue, String exchange, String routingKey) throws IOException
queueBind
in interface com.rabbitmq.client.Channel
IOException
public 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.Channel
IOException
public com.rabbitmq.client.AMQP.Queue.UnbindOk queueUnbind(String queue, String exchange, String routingKey) throws IOException
queueUnbind
in interface com.rabbitmq.client.Channel
IOException
public 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.Channel
IOException
public com.rabbitmq.client.AMQP.Queue.PurgeOk queuePurge(String queue) throws IOException
queuePurge
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.GetResponse basicGet(String queue, boolean autoAck) throws IOException
basicGet
in interface com.rabbitmq.client.Channel
IOException
public void basicAck(long deliveryTag, boolean multiple) throws IOException
basicAck
in interface com.rabbitmq.client.Channel
IOException
public void basicNack(long deliveryTag, boolean multiple, boolean requeue) throws IOException
basicNack
in interface com.rabbitmq.client.Channel
IOException
public void basicReject(long deliveryTag, boolean requeue) throws IOException
basicReject
in interface com.rabbitmq.client.Channel
IOException
public String basicConsume(String queue, com.rabbitmq.client.Consumer callback) throws IOException
basicConsume
in interface com.rabbitmq.client.Channel
IOException
public String basicConsume(String queue, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback) throws IOException
basicConsume
in interface com.rabbitmq.client.Channel
IOException
public String basicConsume(String queue, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback) throws IOException
basicConsume
in interface com.rabbitmq.client.Channel
IOException
public 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.Channel
IOException
public String basicConsume(String queue, boolean autoAck, com.rabbitmq.client.Consumer callback) throws IOException
basicConsume
in interface com.rabbitmq.client.Channel
IOException
public String basicConsume(String queue, boolean autoAck, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback) throws IOException
basicConsume
in interface com.rabbitmq.client.Channel
IOException
public String basicConsume(String queue, boolean autoAck, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback) throws IOException
basicConsume
in interface com.rabbitmq.client.Channel
IOException
public 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.Channel
IOException
public String basicConsume(String queue, boolean autoAck, String consumerTag, com.rabbitmq.client.Consumer callback) throws IOException
basicConsume
in interface com.rabbitmq.client.Channel
IOException
public 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.Channel
IOException
public 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.Channel
IOException
public 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.Channel
IOException
public String basicConsume(String queue, boolean autoAck, Map<String,Object> arguments, com.rabbitmq.client.Consumer callback) throws IOException
basicConsume
in interface com.rabbitmq.client.Channel
IOException
public 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.Channel
IOException
public 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.Channel
IOException
public 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.Channel
IOException
public 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.Channel
IOException
public 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.Channel
IOException
public 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.Channel
IOException
public 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.Channel
IOException
public void basicCancel(String consumerTag) throws IOException
basicCancel
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Basic.RecoverOk basicRecover() throws IOException
basicRecover
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Basic.RecoverOk basicRecover(boolean requeue) throws IOException
basicRecover
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Tx.SelectOk txSelect() throws IOException
txSelect
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Tx.CommitOk txCommit() throws IOException
txCommit
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Tx.RollbackOk txRollback() throws IOException
txRollback
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.AMQP.Confirm.SelectOk confirmSelect() throws IOException
confirmSelect
in interface com.rabbitmq.client.Channel
IOException
public long getNextPublishSeqNo()
getNextPublishSeqNo
in interface com.rabbitmq.client.Channel
public boolean waitForConfirms() throws InterruptedException
waitForConfirms
in interface com.rabbitmq.client.Channel
InterruptedException
public boolean waitForConfirms(long timeout) throws InterruptedException, TimeoutException
waitForConfirms
in interface com.rabbitmq.client.Channel
InterruptedException
TimeoutException
public void waitForConfirmsOrDie() throws IOException, InterruptedException
waitForConfirmsOrDie
in interface com.rabbitmq.client.Channel
IOException
InterruptedException
public void waitForConfirmsOrDie(long timeout) throws IOException, InterruptedException, TimeoutException
waitForConfirmsOrDie
in interface com.rabbitmq.client.Channel
IOException
InterruptedException
TimeoutException
public void asyncRpc(com.rabbitmq.client.Method method) throws IOException
asyncRpc
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.Command rpc(com.rabbitmq.client.Method method) throws IOException
rpc
in interface com.rabbitmq.client.Channel
IOException
public void addConfirmListener(com.rabbitmq.client.ConfirmListener listener)
addConfirmListener
in interface com.rabbitmq.client.Channel
public com.rabbitmq.client.ConfirmListener addConfirmListener(com.rabbitmq.client.ConfirmCallback ackCallback, com.rabbitmq.client.ConfirmCallback nackCallback)
addConfirmListener
in interface com.rabbitmq.client.Channel
public boolean removeConfirmListener(com.rabbitmq.client.ConfirmListener listener)
removeConfirmListener
in interface com.rabbitmq.client.Channel
public void clearConfirmListeners()
clearConfirmListeners
in interface com.rabbitmq.client.Channel
public void addReturnListener(com.rabbitmq.client.ReturnListener listener)
addReturnListener
in interface com.rabbitmq.client.Channel
public com.rabbitmq.client.ReturnListener addReturnListener(com.rabbitmq.client.ReturnCallback returnCallback)
addReturnListener
in interface com.rabbitmq.client.Channel
public boolean removeReturnListener(com.rabbitmq.client.ReturnListener listener)
removeReturnListener
in interface com.rabbitmq.client.Channel
public void clearReturnListeners()
clearReturnListeners
in interface com.rabbitmq.client.Channel
public void exchangeBindNoWait(String destination, String source, String routingKey, Map<String,Object> arguments) throws IOException
exchangeBindNoWait
in interface com.rabbitmq.client.Channel
IOException
public void exchangeDeclareNoWait(String exchange, String type, boolean durable, boolean autoDelete, boolean internal, Map<String,Object> arguments) throws IOException
exchangeDeclareNoWait
in interface com.rabbitmq.client.Channel
IOException
public 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.Channel
IOException
public void exchangeDeleteNoWait(String exchange, boolean ifUnused) throws IOException
exchangeDeleteNoWait
in interface com.rabbitmq.client.Channel
IOException
public void exchangeUnbindNoWait(String destination, String source, String routingKey, Map<String,Object> arguments) throws IOException
exchangeUnbindNoWait
in interface com.rabbitmq.client.Channel
IOException
public void queueBindNoWait(String queue, String exchange, String routingKey, Map<String,Object> arguments) throws IOException
queueBindNoWait
in interface com.rabbitmq.client.Channel
IOException
public void queueDeclareNoWait(String queue, boolean durable, boolean exclusive, boolean autoDelete, Map<String,Object> arguments) throws IOException
queueDeclareNoWait
in interface com.rabbitmq.client.Channel
IOException
public void queueDeleteNoWait(String queue, boolean ifUnused, boolean ifEmpty) throws IOException
queueDeleteNoWait
in interface com.rabbitmq.client.Channel
IOException
public long consumerCount(String queue) throws IOException
consumerCount
in interface com.rabbitmq.client.Channel
IOException
public CompletableFuture<com.rabbitmq.client.Command> asyncCompletableRpc(com.rabbitmq.client.Method method) throws IOException
asyncCompletableRpc
in interface com.rabbitmq.client.Channel
IOException
public long messageCount(String queue) throws IOException
messageCount
in interface com.rabbitmq.client.Channel
IOException
public com.rabbitmq.client.Channel getDelegate()
PublisherCallbackChannel
Channel
that
are not supported by this implementation.getDelegate
in interface PublisherCallbackChannel
Channel
.public void close() throws IOException, TimeoutException
close
in interface com.rabbitmq.client.Channel
close
in interface AutoCloseable
IOException
TimeoutException
public int getPendingConfirmsCount(PublisherCallbackChannel.Listener listener)
PublisherCallbackChannel
PendingConfirm
s count.getPendingConfirmsCount
in interface PublisherCallbackChannel
listener
- the listener.public int getPendingConfirmsCount()
PublisherCallbackChannel
getPendingConfirmsCount
in interface PublisherCallbackChannel
public void addListener(PublisherCallbackChannel.Listener listener)
addListener
in interface PublisherCallbackChannel
listener
- the listener.public Collection<PendingConfirm> expire(PublisherCallbackChannel.Listener listener, long cutoffTime)
PublisherCallbackChannel
PendingConfirm
s created before cutoffTime for the
supplied listener and return them to the caller.expire
in interface PublisherCallbackChannel
listener
- the listener.cutoffTime
- the time before which expired messages were created.public void handleAck(long seq, boolean multiple)
handleAck
in interface com.rabbitmq.client.ConfirmListener
public void handleNack(long seq, boolean multiple)
handleNack
in interface com.rabbitmq.client.ConfirmListener
public void addPendingConfirm(PublisherCallbackChannel.Listener listener, long seq, PendingConfirm pendingConfirm)
PublisherCallbackChannel
addPendingConfirm
in interface PublisherCallbackChannel
listener
- The listener.seq
- The key to the map.pendingConfirm
- The PendingConfirm object.public void handleReturn(int replyCode, String replyText, String exchange, String routingKey, com.rabbitmq.client.AMQP.BasicProperties properties, byte[] body)
handleReturn
in interface com.rabbitmq.client.ReturnListener
public void shutdownCompleted(com.rabbitmq.client.ShutdownSignalException cause)
shutdownCompleted
in interface com.rabbitmq.client.ShutdownListener
public static PublisherCallbackChannelFactory factory()