Example usage for Java com.rabbitmq.client Channel fields, constructors, methods, implement or subclass
The text is from its open source code.
void | abort() Abort this channel with the com.rabbitmq.client.AMQP#REPLY_SUCCESS close code and message 'OK'. |
void | abort(int closeCode, String closeMessage) Abort this channel. |
void | addConfirmListener(ConfirmListener listener) Add a ConfirmListener . |
void | addReturnListener(ReturnListener listener) Add a ReturnListener . |
ReturnListener | addReturnListener(ReturnCallback returnCallback) Add a lambda-based ReturnListener . |
void | basicAck(long deliveryTag, boolean multiple) Acknowledge one or several received messages. |
void | basicCancel(String consumerTag) Cancel a consumer. |
String | basicConsume(String queue, DeliverCallback deliverCallback, CancelCallback cancelCallback) Start a non-nolocal, non-exclusive consumer, with explicit acknowledgement and a server-generated consumerTag. |
String | basicConsume(String queue, DeliverCallback deliverCallback, ConsumerShutdownSignalCallback shutdownSignalCallback) Start a non-nolocal, non-exclusive consumer, with explicit acknowledgement and a server-generated consumerTag. |
String | basicConsume(String queue, boolean autoAck, Consumer callback) Start a non-nolocal, non-exclusive consumer, with a server-generated consumerTag. |
String | basicConsume(String queue, DeliverCallback deliverCallback, CancelCallback cancelCallback, ConsumerShutdownSignalCallback shutdownSignalCallback) Start a non-nolocal, non-exclusive consumer, with explicit acknowledgement and a server-generated consumerTag. |
String | basicConsume(String queue, boolean autoAck, DeliverCallback deliverCallback, CancelCallback cancelCallback) Start a non-nolocal, non-exclusive consumer, with a server-generated consumerTag. |
String | basicConsume(String queue, boolean autoAck, DeliverCallback deliverCallback, ConsumerShutdownSignalCallback shutdownSignalCallback) Start a non-nolocal, non-exclusive consumer, with a server-generated consumerTag. |
String | basicConsume(String queue, boolean autoAck, Map Start a non-nolocal, non-exclusive consumer, with a server-generated consumerTag and specified arguments. |
String | basicConsume(String queue, boolean autoAck, String consumerTag, Consumer callback) Start a non-nolocal, non-exclusive consumer. |
String | basicConsume(String queue, Consumer callback) Start a non-nolocal, non-exclusive consumer, with explicit acknowledgement and a server-generated consumerTag. |
String | basicConsume(String queue, boolean autoAck, String consumerTag, boolean noLocal, boolean exclusive, Map Start a consumer. |
GetResponse | basicGet(String queue, boolean autoAck) Retrieve a message from a queue using com.rabbitmq.client.AMQP.Basic.Get |
void | basicNack(long deliveryTag, boolean multiple, boolean requeue) Reject one or several received messages. |
void | basicPublish(String exchange, String routingKey, BasicProperties props, byte[] body) Publish a message. |
void | basicPublish(String exchange, String routingKey, boolean mandatory, BasicProperties props, byte[] body) Publish a message. |
void | basicPublish(String exchange, String routingKey, boolean mandatory, boolean immediate, BasicProperties props, byte[] body) Publish a message. |
void | basicQos(int prefetchCount) Request a specific prefetchCount "quality of service" settings for this channel. |
void | basicQos(int prefetchSize, int prefetchCount, boolean global) Request specific "quality of service" settings. |
void | basicQos(int prefetchCount, boolean global) Request a specific prefetchCount "quality of service" settings for this channel. |
Basic.RecoverOk | basicRecover(boolean requeue) Ask the broker to resend unacknowledged messages. |
void | basicReject(long deliveryTag, boolean requeue) Reject a message. |
void | clearConfirmListeners() Remove all ConfirmListener s. |
void | close() Close this channel with the com.rabbitmq.client.AMQP#REPLY_SUCCESS close code and message 'OK'. |
void | close(int closeCode, String closeMessage) Close this channel. |
Confirm.SelectOk | confirmSelect() Enables publisher acknowledgements on this channel. |
Exchange.BindOk | exchangeBind(String destination, String source, String routingKey, Map Bind an exchange to an exchange. |
Exchange.BindOk | exchangeBind(String destination, String source, String routingKey) Bind an exchange to an exchange, with no extra arguments. |
Exchange.DeclareOk | exchangeDeclare(String exchange, String type, boolean durable) Actively declare a non-autodelete exchange with no extra arguments |
Exchange.DeclareOk | exchangeDeclare(String exchange, BuiltinExchangeType type, boolean durable) Actively declare a non-autodelete exchange with no extra arguments |
Exchange.DeclareOk | exchangeDeclare(String exchange, String type) Actively declare a non-autodelete, non-durable exchange with no extra arguments |
Exchange.DeclareOk | exchangeDeclare(String exchange, BuiltinExchangeType type) Actively declare a non-autodelete, non-durable exchange with no extra arguments |
Exchange.DeclareOk | exchangeDeclare(String exchange, String type, boolean durable, boolean autoDelete, boolean internal, Map Declare an exchange, via an interface that allows the complete set of arguments. |
Exchange.DeclareOk | exchangeDeclare(String exchange, BuiltinExchangeType type, boolean durable, boolean autoDelete, boolean internal, Map Declare an exchange, via an interface that allows the complete set of arguments. |
Exchange.DeclareOk | exchangeDeclare(String exchange, String type, boolean durable, boolean autoDelete, Map Declare an exchange. |
Exchange.DeclareOk | exchangeDeclare(String exchange, BuiltinExchangeType type, boolean durable, boolean autoDelete, Map Declare an exchange. |
Exchange.DeclareOk | exchangeDeclarePassive(String name) Declare an exchange passively; that is, check if the named exchange exists. |
Exchange.DeleteOk | exchangeDelete(String exchange) Delete an exchange, without regard for whether it is in use or not |
Exchange.UnbindOk | exchangeUnbind(String destination, String source, String routingKey, Map Unbind an exchange from an exchange. |
int | getChannelNumber() Retrieve this channel's channel number. |
Connection | getConnection() Retrieve the connection which carries this channel. |
long | getNextPublishSeqNo() When in confirm mode, returns the sequence number of the next message to be published. |
Queue.BindOk | queueBind(String queue, String exchange, String routingKey) Bind a queue to an exchange, with no extra arguments. |
Queue.BindOk | queueBind(String queue, String exchange, String routingKey, Map Bind a queue to an exchange. |
Queue.DeclareOk | queueDeclare(String queue, boolean durable, boolean exclusive, boolean autoDelete, Map Declare a queue |
Queue.DeclareOk | queueDeclare() Actively declare a server-named exclusive, autodelete, non-durable queue. |
Queue.DeclareOk | queueDeclarePassive(String queue) Declare a queue passively; i.e., check if it exists. |
Queue.DeleteOk | queueDelete(String queue) Delete a queue, without regard for whether it is in use or has messages on it |
Queue.DeleteOk | queueDelete(String queue, boolean ifUnused, boolean ifEmpty) Delete a queue |
Queue.PurgeOk | queuePurge(String queue) Purges the contents of the given queue. |
Queue.UnbindOk | queueUnbind(String queue, String exchange, String routingKey) Unbinds a queue from an exchange, with no extra arguments. |
Queue.UnbindOk | queueUnbind(String queue, String exchange, String routingKey, Map Unbind a queue from an exchange. |
Tx.CommitOk | txCommit() Commits a TX transaction on this channel. |
Tx.RollbackOk | txRollback() Rolls back a TX transaction on this channel. |
Tx.SelectOk | txSelect() Enables TX mode on this channel. |
boolean | waitForConfirms() Wait until all messages published since the last call have been either ack'd or nack'd by the broker. |
void | waitForConfirmsOrDie(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. |
void | waitForConfirmsOrDie() Wait until all messages published since the last call have been either ack'd or nack'd by the broker. |