Package com.github.fridujo.rabbitmq.mock
Class MockChannel
- java.lang.Object
-
- com.github.fridujo.rabbitmq.mock.MockChannel
-
- All Implemented Interfaces:
com.rabbitmq.client.Channel,com.rabbitmq.client.ShutdownNotifier,AutoCloseable
public class MockChannel extends Object implements com.rabbitmq.client.Channel
-
-
Field Summary
Fields Modifier and Type Field Description static StringDIRECT_REPLY_TO_QUEUE
-
Constructor Summary
Constructors Constructor Description MockChannel(int channelNumber, MockNode node, MockConnection mockConnection, MetricsCollectorWrapper metricsCollectorWrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()voidabort(int closeCode, String closeMessage)com.rabbitmq.client.ConfirmListeneraddConfirmListener(com.rabbitmq.client.ConfirmCallback ackCallback, com.rabbitmq.client.ConfirmCallback nackCallback)voidaddConfirmListener(com.rabbitmq.client.ConfirmListener listener)com.rabbitmq.client.ReturnListeneraddReturnListener(com.rabbitmq.client.ReturnCallback returnCallback)voidaddReturnListener(com.rabbitmq.client.ReturnListener listener)voidaddShutdownListener(com.rabbitmq.client.ShutdownListener listener)CompletableFuture<com.rabbitmq.client.Command>asyncCompletableRpc(com.rabbitmq.client.Method method)voidasyncRpc(com.rabbitmq.client.Method method)voidbasicAck(long deliveryTag, boolean multiple)voidbasicCancel(String consumerTag)StringbasicConsume(String queue, boolean autoAck, com.rabbitmq.client.Consumer callback)StringbasicConsume(String queue, boolean autoAck, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback)StringbasicConsume(String queue, boolean autoAck, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)StringbasicConsume(String queue, boolean autoAck, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)StringbasicConsume(String queue, boolean autoAck, String consumerTag, boolean noLocal, boolean exclusive, Map<String,Object> arguments, com.rabbitmq.client.Consumer callback)StringbasicConsume(String queue, boolean autoAck, String consumerTag, boolean noLocal, boolean exclusive, Map<String,Object> arguments, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback)StringbasicConsume(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)StringbasicConsume(String queue, boolean autoAck, String consumerTag, boolean noLocal, boolean exclusive, Map<String,Object> arguments, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)StringbasicConsume(String queue, boolean autoAck, String consumerTag, com.rabbitmq.client.Consumer callback)StringbasicConsume(String queue, boolean autoAck, String consumerTag, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback)StringbasicConsume(String queue, boolean autoAck, String consumerTag, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)StringbasicConsume(String queue, boolean autoAck, String consumerTag, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)StringbasicConsume(String queue, boolean autoAck, Map<String,Object> arguments, com.rabbitmq.client.Consumer callback)StringbasicConsume(String queue, boolean autoAck, Map<String,Object> arguments, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback)StringbasicConsume(String queue, boolean autoAck, Map<String,Object> arguments, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)StringbasicConsume(String queue, boolean autoAck, Map<String,Object> arguments, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)StringbasicConsume(String queue, com.rabbitmq.client.Consumer callback)StringbasicConsume(String queue, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback)StringbasicConsume(String queue, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)StringbasicConsume(String queue, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)com.rabbitmq.client.GetResponsebasicGet(String queue, boolean autoAck)voidbasicNack(long deliveryTag, boolean multiple, boolean requeue)voidbasicPublish(String exchange, String routingKey, boolean mandatory, boolean immediate, com.rabbitmq.client.AMQP.BasicProperties props, byte[] body)voidbasicPublish(String exchange, String routingKey, boolean mandatory, com.rabbitmq.client.AMQP.BasicProperties props, byte[] body)voidbasicPublish(String exchange, String routingKey, com.rabbitmq.client.AMQP.BasicProperties props, byte[] body)voidbasicQos(int prefetchCount)voidbasicQos(int prefetchCount, boolean global)voidbasicQos(int prefetchSize, int prefetchCount, boolean global)com.rabbitmq.client.AMQP.Basic.RecoverOkbasicRecover()com.rabbitmq.client.AMQP.Basic.RecoverOkbasicRecover(boolean requeue)voidbasicReject(long deliveryTag, boolean requeue)voidclearConfirmListeners()voidclearReturnListeners()voidclose()voidclose(int closeCode, String closeMessage)com.rabbitmq.client.AMQP.Confirm.SelectOkconfirmSelect()longconsumerCount(String queue)com.rabbitmq.client.AMQP.Exchange.BindOkexchangeBind(String destination, String source, String routingKey)com.rabbitmq.client.AMQP.Exchange.BindOkexchangeBind(String destination, String source, String routingKey, Map<String,Object> arguments)voidexchangeBindNoWait(String destination, String source, String routingKey, Map<String,Object> arguments)com.rabbitmq.client.AMQP.Exchange.DeclareOkexchangeDeclare(String exchange, com.rabbitmq.client.BuiltinExchangeType type)com.rabbitmq.client.AMQP.Exchange.DeclareOkexchangeDeclare(String exchange, com.rabbitmq.client.BuiltinExchangeType type, boolean durable)com.rabbitmq.client.AMQP.Exchange.DeclareOkexchangeDeclare(String exchange, com.rabbitmq.client.BuiltinExchangeType type, boolean durable, boolean autoDelete, boolean internal, Map<String,Object> arguments)com.rabbitmq.client.AMQP.Exchange.DeclareOkexchangeDeclare(String exchange, com.rabbitmq.client.BuiltinExchangeType type, boolean durable, boolean autoDelete, Map<String,Object> arguments)com.rabbitmq.client.AMQP.Exchange.DeclareOkexchangeDeclare(String exchange, String type)com.rabbitmq.client.AMQP.Exchange.DeclareOkexchangeDeclare(String exchange, String type, boolean durable)com.rabbitmq.client.AMQP.Exchange.DeclareOkexchangeDeclare(String exchangeName, String type, boolean durable, boolean autoDelete, boolean internal, Map<String,Object> arguments)com.rabbitmq.client.AMQP.Exchange.DeclareOkexchangeDeclare(String exchange, String type, boolean durable, boolean autoDelete, Map<String,Object> arguments)voidexchangeDeclareNoWait(String exchange, com.rabbitmq.client.BuiltinExchangeType type, boolean durable, boolean autoDelete, boolean internal, Map<String,Object> arguments)voidexchangeDeclareNoWait(String exchange, String type, boolean durable, boolean autoDelete, boolean internal, Map<String,Object> arguments)com.rabbitmq.client.AMQP.Exchange.DeclareOkexchangeDeclarePassive(String name)com.rabbitmq.client.AMQP.Exchange.DeleteOkexchangeDelete(String exchange)com.rabbitmq.client.AMQP.Exchange.DeleteOkexchangeDelete(String exchange, boolean ifUnused)voidexchangeDeleteNoWait(String exchange, boolean ifUnused)com.rabbitmq.client.AMQP.Exchange.UnbindOkexchangeUnbind(String destination, String source, String routingKey)com.rabbitmq.client.AMQP.Exchange.UnbindOkexchangeUnbind(String destination, String source, String routingKey, Map<String,Object> arguments)voidexchangeUnbindNoWait(String destination, String source, String routingKey, Map<String,Object> arguments)intgetChannelNumber()com.rabbitmq.client.ShutdownSignalExceptiongetCloseReason()MockConnectiongetConnection()com.rabbitmq.client.ConsumergetDefaultConsumer()MetricsCollectorWrappergetMetricsCollector()longgetNextPublishSeqNo()Optional<MockQueue>getQueue(String queueName)booleanisOpen()longmessageCount(String queue)voidnotifyListeners()com.rabbitmq.client.AMQP.Queue.BindOkqueueBind(String queue, String exchange, String routingKey)com.rabbitmq.client.AMQP.Queue.BindOkqueueBind(String queue, String exchange, String routingKey, Map<String,Object> arguments)voidqueueBindNoWait(String queue, String exchange, String routingKey, Map<String,Object> arguments)com.rabbitmq.client.AMQP.Queue.DeclareOkqueueDeclare()com.rabbitmq.client.AMQP.Queue.DeclareOkqueueDeclare(String queue, boolean durable, boolean exclusive, boolean autoDelete, Map<String,Object> arguments)voidqueueDeclareNoWait(String queue, boolean durable, boolean exclusive, boolean autoDelete, Map<String,Object> arguments)com.rabbitmq.client.AMQP.Queue.DeclareOkqueueDeclarePassive(String queueName)com.rabbitmq.client.AMQP.Queue.DeleteOkqueueDelete(String queue)com.rabbitmq.client.AMQP.Queue.DeleteOkqueueDelete(String queue, boolean ifUnused, boolean ifEmpty)voidqueueDeleteNoWait(String queue, boolean ifUnused, boolean ifEmpty)com.rabbitmq.client.AMQP.Queue.PurgeOkqueuePurge(String queue)com.rabbitmq.client.AMQP.Queue.UnbindOkqueueUnbind(String queue, String exchange, String routingKey)com.rabbitmq.client.AMQP.Queue.UnbindOkqueueUnbind(String queue, String exchange, String routingKey, Map<String,Object> arguments)booleanremoveConfirmListener(com.rabbitmq.client.ConfirmListener listener)booleanremoveReturnListener(com.rabbitmq.client.ReturnListener listener)voidremoveShutdownListener(com.rabbitmq.client.ShutdownListener listener)com.rabbitmq.client.Commandrpc(com.rabbitmq.client.Method method)voidsetDefaultConsumer(com.rabbitmq.client.Consumer consumer)com.rabbitmq.client.AMQP.Tx.CommitOktxCommit()com.rabbitmq.client.AMQP.Tx.RollbackOktxRollback()com.rabbitmq.client.AMQP.Tx.SelectOktxSelect()booleanwaitForConfirms()booleanwaitForConfirms(long timeout)voidwaitForConfirmsOrDie()voidwaitForConfirmsOrDie(long timeout)
-
-
-
Field Detail
-
DIRECT_REPLY_TO_QUEUE
public static final String DIRECT_REPLY_TO_QUEUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MockChannel
public MockChannel(int channelNumber, MockNode node, MockConnection mockConnection, MetricsCollectorWrapper metricsCollectorWrapper)
-
-
Method Detail
-
getChannelNumber
public int getChannelNumber()
- Specified by:
getChannelNumberin interfacecom.rabbitmq.client.Channel
-
getConnection
public MockConnection getConnection()
- Specified by:
getConnectionin interfacecom.rabbitmq.client.Channel
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacecom.rabbitmq.client.Channel
-
close
public void close(int closeCode, String closeMessage)- Specified by:
closein interfacecom.rabbitmq.client.Channel
-
abort
public void abort()
- Specified by:
abortin interfacecom.rabbitmq.client.Channel
-
abort
public void abort(int closeCode, String closeMessage)- Specified by:
abortin interfacecom.rabbitmq.client.Channel
-
addReturnListener
public void addReturnListener(com.rabbitmq.client.ReturnListener listener)
- Specified by:
addReturnListenerin interfacecom.rabbitmq.client.Channel
-
addReturnListener
public com.rabbitmq.client.ReturnListener addReturnListener(com.rabbitmq.client.ReturnCallback returnCallback)
- Specified by:
addReturnListenerin interfacecom.rabbitmq.client.Channel
-
removeReturnListener
public boolean removeReturnListener(com.rabbitmq.client.ReturnListener listener)
- Specified by:
removeReturnListenerin interfacecom.rabbitmq.client.Channel
-
clearReturnListeners
public void clearReturnListeners()
- Specified by:
clearReturnListenersin interfacecom.rabbitmq.client.Channel
-
addConfirmListener
public void addConfirmListener(com.rabbitmq.client.ConfirmListener listener)
- Specified by:
addConfirmListenerin interfacecom.rabbitmq.client.Channel
-
addConfirmListener
public com.rabbitmq.client.ConfirmListener addConfirmListener(com.rabbitmq.client.ConfirmCallback ackCallback, com.rabbitmq.client.ConfirmCallback nackCallback)- Specified by:
addConfirmListenerin interfacecom.rabbitmq.client.Channel
-
removeConfirmListener
public boolean removeConfirmListener(com.rabbitmq.client.ConfirmListener listener)
- Specified by:
removeConfirmListenerin interfacecom.rabbitmq.client.Channel
-
clearConfirmListeners
public void clearConfirmListeners()
- Specified by:
clearConfirmListenersin interfacecom.rabbitmq.client.Channel
-
getDefaultConsumer
public com.rabbitmq.client.Consumer getDefaultConsumer()
- Specified by:
getDefaultConsumerin interfacecom.rabbitmq.client.Channel
-
setDefaultConsumer
public void setDefaultConsumer(com.rabbitmq.client.Consumer consumer)
- Specified by:
setDefaultConsumerin interfacecom.rabbitmq.client.Channel
-
basicQos
public void basicQos(int prefetchSize, int prefetchCount, boolean global)- Specified by:
basicQosin interfacecom.rabbitmq.client.Channel
-
basicQos
public void basicQos(int prefetchCount, boolean global)- Specified by:
basicQosin interfacecom.rabbitmq.client.Channel
-
basicQos
public void basicQos(int prefetchCount)
- Specified by:
basicQosin interfacecom.rabbitmq.client.Channel
-
basicPublish
public void basicPublish(String exchange, String routingKey, com.rabbitmq.client.AMQP.BasicProperties props, byte[] body)
- Specified by:
basicPublishin interfacecom.rabbitmq.client.Channel
-
basicPublish
public void basicPublish(String exchange, String routingKey, boolean mandatory, com.rabbitmq.client.AMQP.BasicProperties props, byte[] body)
- Specified by:
basicPublishin interfacecom.rabbitmq.client.Channel
-
basicPublish
public void basicPublish(String exchange, String routingKey, boolean mandatory, boolean immediate, com.rabbitmq.client.AMQP.BasicProperties props, byte[] body)
- Specified by:
basicPublishin interfacecom.rabbitmq.client.Channel
-
exchangeDeclare
public com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, String type) throws IOException
- Specified by:
exchangeDeclarein interfacecom.rabbitmq.client.Channel- Throws:
IOException
-
exchangeDeclare
public com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, com.rabbitmq.client.BuiltinExchangeType type) throws IOException
- Specified by:
exchangeDeclarein interfacecom.rabbitmq.client.Channel- Throws:
IOException
-
exchangeDeclare
public com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, String type, boolean durable) throws IOException
- Specified by:
exchangeDeclarein interfacecom.rabbitmq.client.Channel- Throws:
IOException
-
exchangeDeclare
public com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, com.rabbitmq.client.BuiltinExchangeType type, boolean durable) throws IOException
- Specified by:
exchangeDeclarein interfacecom.rabbitmq.client.Channel- Throws:
IOException
-
exchangeDeclare
public com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchange, String type, boolean durable, boolean autoDelete, Map<String,Object> arguments) throws IOException
- Specified by:
exchangeDeclarein interfacecom.rabbitmq.client.Channel- Throws:
IOException
-
exchangeDeclare
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
- Specified by:
exchangeDeclarein interfacecom.rabbitmq.client.Channel- Throws:
IOException
-
exchangeDeclare
public com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclare(String exchangeName, String type, boolean durable, boolean autoDelete, boolean internal, Map<String,Object> arguments) throws IOException
- Specified by:
exchangeDeclarein interfacecom.rabbitmq.client.Channel- Throws:
IOException
-
exchangeDeclare
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
- Specified by:
exchangeDeclarein interfacecom.rabbitmq.client.Channel- Throws:
IOException
-
exchangeDeclareNoWait
public void exchangeDeclareNoWait(String exchange, String type, boolean durable, boolean autoDelete, boolean internal, Map<String,Object> arguments) throws IOException
- Specified by:
exchangeDeclareNoWaitin interfacecom.rabbitmq.client.Channel- Throws:
IOException
-
exchangeDeclareNoWait
public void exchangeDeclareNoWait(String exchange, com.rabbitmq.client.BuiltinExchangeType type, boolean durable, boolean autoDelete, boolean internal, Map<String,Object> arguments) throws IOException
- Specified by:
exchangeDeclareNoWaitin interfacecom.rabbitmq.client.Channel- Throws:
IOException
-
exchangeDeclarePassive
public com.rabbitmq.client.AMQP.Exchange.DeclareOk exchangeDeclarePassive(String name) throws IOException
- Specified by:
exchangeDeclarePassivein interfacecom.rabbitmq.client.Channel- Throws:
IOException
-
exchangeDelete
public com.rabbitmq.client.AMQP.Exchange.DeleteOk exchangeDelete(String exchange, boolean ifUnused)
- Specified by:
exchangeDeletein interfacecom.rabbitmq.client.Channel
-
exchangeDeleteNoWait
public void exchangeDeleteNoWait(String exchange, boolean ifUnused)
- Specified by:
exchangeDeleteNoWaitin interfacecom.rabbitmq.client.Channel
-
exchangeDelete
public com.rabbitmq.client.AMQP.Exchange.DeleteOk exchangeDelete(String exchange)
- Specified by:
exchangeDeletein interfacecom.rabbitmq.client.Channel
-
exchangeBind
public com.rabbitmq.client.AMQP.Exchange.BindOk exchangeBind(String destination, String source, String routingKey)
- Specified by:
exchangeBindin interfacecom.rabbitmq.client.Channel
-
exchangeBind
public com.rabbitmq.client.AMQP.Exchange.BindOk exchangeBind(String destination, String source, String routingKey, Map<String,Object> arguments)
- Specified by:
exchangeBindin interfacecom.rabbitmq.client.Channel
-
exchangeBindNoWait
public void exchangeBindNoWait(String destination, String source, String routingKey, Map<String,Object> arguments)
- Specified by:
exchangeBindNoWaitin interfacecom.rabbitmq.client.Channel
-
exchangeUnbind
public com.rabbitmq.client.AMQP.Exchange.UnbindOk exchangeUnbind(String destination, String source, String routingKey)
- Specified by:
exchangeUnbindin interfacecom.rabbitmq.client.Channel
-
exchangeUnbind
public com.rabbitmq.client.AMQP.Exchange.UnbindOk exchangeUnbind(String destination, String source, String routingKey, Map<String,Object> arguments)
- Specified by:
exchangeUnbindin interfacecom.rabbitmq.client.Channel
-
exchangeUnbindNoWait
public void exchangeUnbindNoWait(String destination, String source, String routingKey, Map<String,Object> arguments)
- Specified by:
exchangeUnbindNoWaitin interfacecom.rabbitmq.client.Channel
-
queueDeclare
public com.rabbitmq.client.AMQP.Queue.DeclareOk queueDeclare()
- Specified by:
queueDeclarein interfacecom.rabbitmq.client.Channel
-
queueDeclare
public com.rabbitmq.client.AMQP.Queue.DeclareOk queueDeclare(String queue, boolean durable, boolean exclusive, boolean autoDelete, Map<String,Object> arguments)
- Specified by:
queueDeclarein interfacecom.rabbitmq.client.Channel
-
queueDeclareNoWait
public void queueDeclareNoWait(String queue, boolean durable, boolean exclusive, boolean autoDelete, Map<String,Object> arguments)
- Specified by:
queueDeclareNoWaitin interfacecom.rabbitmq.client.Channel
-
queueDeclarePassive
public com.rabbitmq.client.AMQP.Queue.DeclareOk queueDeclarePassive(String queueName) throws IOException
- Specified by:
queueDeclarePassivein interfacecom.rabbitmq.client.Channel- Throws:
IOException
-
queueDelete
public com.rabbitmq.client.AMQP.Queue.DeleteOk queueDelete(String queue)
- Specified by:
queueDeletein interfacecom.rabbitmq.client.Channel
-
queueDelete
public com.rabbitmq.client.AMQP.Queue.DeleteOk queueDelete(String queue, boolean ifUnused, boolean ifEmpty)
- Specified by:
queueDeletein interfacecom.rabbitmq.client.Channel
-
queueDeleteNoWait
public void queueDeleteNoWait(String queue, boolean ifUnused, boolean ifEmpty)
- Specified by:
queueDeleteNoWaitin interfacecom.rabbitmq.client.Channel
-
queueBind
public com.rabbitmq.client.AMQP.Queue.BindOk queueBind(String queue, String exchange, String routingKey)
- Specified by:
queueBindin interfacecom.rabbitmq.client.Channel
-
queueBind
public com.rabbitmq.client.AMQP.Queue.BindOk queueBind(String queue, String exchange, String routingKey, Map<String,Object> arguments)
- Specified by:
queueBindin interfacecom.rabbitmq.client.Channel
-
queueBindNoWait
public void queueBindNoWait(String queue, String exchange, String routingKey, Map<String,Object> arguments)
- Specified by:
queueBindNoWaitin interfacecom.rabbitmq.client.Channel
-
queueUnbind
public com.rabbitmq.client.AMQP.Queue.UnbindOk queueUnbind(String queue, String exchange, String routingKey)
- Specified by:
queueUnbindin interfacecom.rabbitmq.client.Channel
-
queueUnbind
public com.rabbitmq.client.AMQP.Queue.UnbindOk queueUnbind(String queue, String exchange, String routingKey, Map<String,Object> arguments)
- Specified by:
queueUnbindin interfacecom.rabbitmq.client.Channel
-
queuePurge
public com.rabbitmq.client.AMQP.Queue.PurgeOk queuePurge(String queue)
- Specified by:
queuePurgein interfacecom.rabbitmq.client.Channel
-
basicGet
public com.rabbitmq.client.GetResponse basicGet(String queue, boolean autoAck)
- Specified by:
basicGetin interfacecom.rabbitmq.client.Channel
-
basicAck
public void basicAck(long deliveryTag, boolean multiple)- Specified by:
basicAckin interfacecom.rabbitmq.client.Channel
-
basicNack
public void basicNack(long deliveryTag, boolean multiple, boolean requeue)- Specified by:
basicNackin interfacecom.rabbitmq.client.Channel
-
basicReject
public void basicReject(long deliveryTag, boolean requeue)- Specified by:
basicRejectin interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, com.rabbitmq.client.Consumer callback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, boolean autoAck, com.rabbitmq.client.Consumer callback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, boolean autoAck, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, boolean autoAck, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, boolean autoAck, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, boolean autoAck, Map<String,Object> arguments, com.rabbitmq.client.Consumer callback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, boolean autoAck, Map<String,Object> arguments, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, boolean autoAck, Map<String,Object> arguments, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
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)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, boolean autoAck, String consumerTag, com.rabbitmq.client.Consumer callback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, boolean autoAck, String consumerTag, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, boolean autoAck, String consumerTag, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, boolean autoAck, String consumerTag, com.rabbitmq.client.DeliverCallback deliverCallback, com.rabbitmq.client.CancelCallback cancelCallback, com.rabbitmq.client.ConsumerShutdownSignalCallback shutdownSignalCallback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
public String basicConsume(String queue, boolean autoAck, String consumerTag, boolean noLocal, boolean exclusive, Map<String,Object> arguments, com.rabbitmq.client.Consumer callback)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
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)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
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)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicConsume
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)
- Specified by:
basicConsumein interfacecom.rabbitmq.client.Channel
-
basicCancel
public void basicCancel(String consumerTag)
- Specified by:
basicCancelin interfacecom.rabbitmq.client.Channel
-
basicRecover
public com.rabbitmq.client.AMQP.Basic.RecoverOk basicRecover()
- Specified by:
basicRecoverin interfacecom.rabbitmq.client.Channel
-
basicRecover
public com.rabbitmq.client.AMQP.Basic.RecoverOk basicRecover(boolean requeue)
- Specified by:
basicRecoverin interfacecom.rabbitmq.client.Channel
-
txSelect
public com.rabbitmq.client.AMQP.Tx.SelectOk txSelect()
- Specified by:
txSelectin interfacecom.rabbitmq.client.Channel
-
txCommit
public com.rabbitmq.client.AMQP.Tx.CommitOk txCommit()
- Specified by:
txCommitin interfacecom.rabbitmq.client.Channel
-
txRollback
public com.rabbitmq.client.AMQP.Tx.RollbackOk txRollback()
- Specified by:
txRollbackin interfacecom.rabbitmq.client.Channel
-
confirmSelect
public com.rabbitmq.client.AMQP.Confirm.SelectOk confirmSelect()
- Specified by:
confirmSelectin interfacecom.rabbitmq.client.Channel
-
getNextPublishSeqNo
public long getNextPublishSeqNo()
- Specified by:
getNextPublishSeqNoin interfacecom.rabbitmq.client.Channel
-
waitForConfirms
public boolean waitForConfirms() throws IllegalStateException- Specified by:
waitForConfirmsin interfacecom.rabbitmq.client.Channel- Throws:
IllegalStateException
-
waitForConfirms
public boolean waitForConfirms(long timeout) throws IllegalStateException- Specified by:
waitForConfirmsin interfacecom.rabbitmq.client.Channel- Throws:
IllegalStateException
-
waitForConfirmsOrDie
public void waitForConfirmsOrDie()
- Specified by:
waitForConfirmsOrDiein interfacecom.rabbitmq.client.Channel
-
waitForConfirmsOrDie
public void waitForConfirmsOrDie(long timeout)
- Specified by:
waitForConfirmsOrDiein interfacecom.rabbitmq.client.Channel
-
asyncRpc
public void asyncRpc(com.rabbitmq.client.Method method)
- Specified by:
asyncRpcin interfacecom.rabbitmq.client.Channel
-
rpc
public com.rabbitmq.client.Command rpc(com.rabbitmq.client.Method method)
- Specified by:
rpcin interfacecom.rabbitmq.client.Channel
-
messageCount
public long messageCount(String queue)
- Specified by:
messageCountin interfacecom.rabbitmq.client.Channel
-
consumerCount
public long consumerCount(String queue)
- Specified by:
consumerCountin interfacecom.rabbitmq.client.Channel
-
asyncCompletableRpc
public CompletableFuture<com.rabbitmq.client.Command> asyncCompletableRpc(com.rabbitmq.client.Method method)
- Specified by:
asyncCompletableRpcin interfacecom.rabbitmq.client.Channel
-
addShutdownListener
public void addShutdownListener(com.rabbitmq.client.ShutdownListener listener)
- Specified by:
addShutdownListenerin interfacecom.rabbitmq.client.ShutdownNotifier
-
removeShutdownListener
public void removeShutdownListener(com.rabbitmq.client.ShutdownListener listener)
- Specified by:
removeShutdownListenerin interfacecom.rabbitmq.client.ShutdownNotifier
-
getCloseReason
public com.rabbitmq.client.ShutdownSignalException getCloseReason()
- Specified by:
getCloseReasonin interfacecom.rabbitmq.client.ShutdownNotifier
-
notifyListeners
public void notifyListeners()
- Specified by:
notifyListenersin interfacecom.rabbitmq.client.ShutdownNotifier
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfacecom.rabbitmq.client.ShutdownNotifier
-
getMetricsCollector
public MetricsCollectorWrapper getMetricsCollector()
-
-