Java com.rabbitmq.client Channel fields, constructors, methods, implement or subclass

Example usage for Java com.rabbitmq.client Channel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.rabbitmq.client Channel.

The text is from its open source code.

Implementation

com.rabbitmq.client.Channel has the following implementations.
Click this link to see all its implementation.

Method

voidabort()
Abort this channel with the com.rabbitmq.client.AMQP#REPLY_SUCCESS close code and message 'OK'.
voidabort(int closeCode, String closeMessage)
Abort this channel.
voidaddConfirmListener(ConfirmListener listener)
Add a ConfirmListener .
voidaddReturnListener(ReturnListener listener)
Add a ReturnListener .
ReturnListeneraddReturnListener(ReturnCallback returnCallback)
Add a lambda-based ReturnListener .
voidbasicAck(long deliveryTag, boolean multiple)
Acknowledge one or several received messages.
voidbasicCancel(String consumerTag)
Cancel a consumer.
StringbasicConsume(String queue, DeliverCallback deliverCallback, CancelCallback cancelCallback)
Start a non-nolocal, non-exclusive consumer, with explicit acknowledgement and a server-generated consumerTag.
StringbasicConsume(String queue, DeliverCallback deliverCallback, ConsumerShutdownSignalCallback shutdownSignalCallback)
Start a non-nolocal, non-exclusive consumer, with explicit acknowledgement and a server-generated consumerTag.
StringbasicConsume(String queue, boolean autoAck, Consumer callback)
Start a non-nolocal, non-exclusive consumer, with a server-generated consumerTag.
StringbasicConsume(String queue, DeliverCallback deliverCallback, CancelCallback cancelCallback, ConsumerShutdownSignalCallback shutdownSignalCallback)
Start a non-nolocal, non-exclusive consumer, with explicit acknowledgement and a server-generated consumerTag.
StringbasicConsume(String queue, boolean autoAck, DeliverCallback deliverCallback, CancelCallback cancelCallback)
Start a non-nolocal, non-exclusive consumer, with a server-generated consumerTag.
StringbasicConsume(String queue, boolean autoAck, DeliverCallback deliverCallback, ConsumerShutdownSignalCallback shutdownSignalCallback)
Start a non-nolocal, non-exclusive consumer, with a server-generated consumerTag.
StringbasicConsume(String queue, boolean autoAck, Map arguments, Consumer callback)
Start a non-nolocal, non-exclusive consumer, with a server-generated consumerTag and specified arguments.
StringbasicConsume(String queue, boolean autoAck, String consumerTag, Consumer callback)
Start a non-nolocal, non-exclusive consumer.
StringbasicConsume(String queue, Consumer callback)
Start a non-nolocal, non-exclusive consumer, with explicit acknowledgement and a server-generated consumerTag.
StringbasicConsume(String queue, boolean autoAck, String consumerTag, boolean noLocal, boolean exclusive, Map arguments, Consumer callback)
Start a consumer.
GetResponsebasicGet(String queue, boolean autoAck)
Retrieve a message from a queue using com.rabbitmq.client.AMQP.Basic.Get
voidbasicNack(long deliveryTag, boolean multiple, boolean requeue)
Reject one or several received messages.
voidbasicPublish(String exchange, String routingKey, BasicProperties props, byte[] body)
Publish a message.
voidbasicPublish(String exchange, String routingKey, boolean mandatory, BasicProperties props, byte[] body)
Publish a message.
voidbasicPublish(String exchange, String routingKey, boolean mandatory, boolean immediate, BasicProperties props, byte[] body)
Publish a message.
voidbasicQos(int prefetchCount)
Request a specific prefetchCount "quality of service" settings for this channel.
voidbasicQos(int prefetchSize, int prefetchCount, boolean global)
Request specific "quality of service" settings.
voidbasicQos(int prefetchCount, boolean global)
Request a specific prefetchCount "quality of service" settings for this channel.
Basic.RecoverOkbasicRecover(boolean requeue)
Ask the broker to resend unacknowledged messages.
voidbasicReject(long deliveryTag, boolean requeue)
Reject a message.
voidclearConfirmListeners()
Remove all ConfirmListener s.
voidclose()
Close this channel with the com.rabbitmq.client.AMQP#REPLY_SUCCESS close code and message 'OK'.
voidclose(int closeCode, String closeMessage)
Close this channel.
Confirm.SelectOkconfirmSelect()
Enables publisher acknowledgements on this channel.
Exchange.BindOkexchangeBind(String destination, String source, String routingKey, Map arguments)
Bind an exchange to an exchange.
Exchange.BindOkexchangeBind(String destination, String source, String routingKey)
Bind an exchange to an exchange, with no extra arguments.
Exchange.DeclareOkexchangeDeclare(String exchange, String type, boolean durable)
Actively declare a non-autodelete exchange with no extra arguments
Exchange.DeclareOkexchangeDeclare(String exchange, BuiltinExchangeType type, boolean durable)
Actively declare a non-autodelete exchange with no extra arguments
Exchange.DeclareOkexchangeDeclare(String exchange, String type)
Actively declare a non-autodelete, non-durable exchange with no extra arguments
Exchange.DeclareOkexchangeDeclare(String exchange, BuiltinExchangeType type)
Actively declare a non-autodelete, non-durable exchange with no extra arguments
Exchange.DeclareOkexchangeDeclare(String exchange, String type, boolean durable, boolean autoDelete, boolean internal, Map arguments)
Declare an exchange, via an interface that allows the complete set of arguments.
Exchange.DeclareOkexchangeDeclare(String exchange, BuiltinExchangeType type, boolean durable, boolean autoDelete, boolean internal, Map arguments)
Declare an exchange, via an interface that allows the complete set of arguments.
Exchange.DeclareOkexchangeDeclare(String exchange, String type, boolean durable, boolean autoDelete, Map arguments)
Declare an exchange.
Exchange.DeclareOkexchangeDeclare(String exchange, BuiltinExchangeType type, boolean durable, boolean autoDelete, Map arguments)
Declare an exchange.
Exchange.DeclareOkexchangeDeclarePassive(String name)
Declare an exchange passively; that is, check if the named exchange exists.
Exchange.DeleteOkexchangeDelete(String exchange)
Delete an exchange, without regard for whether it is in use or not
Exchange.UnbindOkexchangeUnbind(String destination, String source, String routingKey, Map arguments)
Unbind an exchange from an exchange.
intgetChannelNumber()
Retrieve this channel's channel number.
ConnectiongetConnection()
Retrieve the connection which carries this channel.
longgetNextPublishSeqNo()
When in confirm mode, returns the sequence number of the next message to be published.
Queue.BindOkqueueBind(String queue, String exchange, String routingKey)
Bind a queue to an exchange, with no extra arguments.
Queue.BindOkqueueBind(String queue, String exchange, String routingKey, Map arguments)
Bind a queue to an exchange.
Queue.DeclareOkqueueDeclare(String queue, boolean durable, boolean exclusive, boolean autoDelete, Map arguments)
Declare a queue
Queue.DeclareOkqueueDeclare()
Actively declare a server-named exclusive, autodelete, non-durable queue.
Queue.DeclareOkqueueDeclarePassive(String queue)
Declare a queue passively; i.e., check if it exists.
Queue.DeleteOkqueueDelete(String queue)
Delete a queue, without regard for whether it is in use or has messages on it
Queue.DeleteOkqueueDelete(String queue, boolean ifUnused, boolean ifEmpty)
Delete a queue
Queue.PurgeOkqueuePurge(String queue)
Purges the contents of the given queue.
Queue.UnbindOkqueueUnbind(String queue, String exchange, String routingKey)
Unbinds a queue from an exchange, with no extra arguments.
Queue.UnbindOkqueueUnbind(String queue, String exchange, String routingKey, Map arguments)
Unbind a queue from an exchange.
Tx.CommitOktxCommit()
Commits a TX transaction on this channel.
Tx.RollbackOktxRollback()
Rolls back a TX transaction on this channel.
Tx.SelectOktxSelect()
Enables TX mode on this channel.
booleanwaitForConfirms()
Wait until all messages published since the last call have been either ack'd or nack'd by the broker.
voidwaitForConfirmsOrDie(long timeout)
Wait until all messages published since the last call have been either ack'd or nack'd by the broker; or until timeout elapses.
voidwaitForConfirmsOrDie()
Wait until all messages published since the last call have been either ack'd or nack'd by the broker.