Uses of Interface
com.rabbitmq.client.Channel
Package
Description
The client API proper: classes and interfaces representing the AMQP
connections, channels, and wire-protocol framing descriptors.
Implementations of interfaces specified in the client API, and their supporting classes.
Implementation of connection and topology recovery.
JSON-RPC client and server classes for supporting JSON-RPC over an AMQP transport.
-
Uses of Channel in com.rabbitmq.client
Modifier and TypeInterfaceDescriptioninterface
Convenient interface when working against auto-recovery channels.Modifier and TypeMethodDescriptionConnection.createChannel()
Create a new channel, using an internally allocated channel number.Connection.createChannel
(int channelNumber) Create a new channel, using the specified channel number if possible.DefaultConsumer.getChannel()
Retrieve the channel.RpcClient.getChannel()
Retrieve the channel.RpcClientParams.getChannel()
Set the channel to use for communication.RpcServer.getChannel()
Retrieve the channel.Modifier and TypeMethodDescriptionConnection.openChannel()
Create a new channel wrapped in anOptional
.Connection.openChannel
(int channelNumber) Create a new channel, using the specified channel number if possible.Modifier and TypeMethodDescriptionvoid
void
void
MetricsCollector.basicCancel
(Channel channel, String consumerTag) void
NoOpMetricsCollector.basicCancel
(Channel channel, String consumerTag) void
MetricsCollector.basicConsume
(Channel channel, String consumerTag, boolean autoAck) void
NoOpMetricsCollector.basicConsume
(Channel channel, String consumerTag, boolean autoAck) void
void
void
MetricsCollector.basicPublish
(Channel channel) void
NoOpMetricsCollector.basicPublish
(Channel channel) default void
MetricsCollector.basicPublishAck
(Channel channel, long deliveryTag, boolean multiple) void
NoOpMetricsCollector.basicPublishAck
(Channel channel, long deliveryTag, boolean multiple) default void
MetricsCollector.basicPublishFailure
(Channel channel, Throwable cause) void
NoOpMetricsCollector.basicPublishFailure
(Channel channel, Throwable cause) default void
MetricsCollector.basicPublishNack
(Channel channel, long deliveryTag, boolean multiple) void
NoOpMetricsCollector.basicPublishNack
(Channel channel, long deliveryTag, boolean multiple) default void
MetricsCollector.basicPublishUnrouted
(Channel channel) void
NoOpMetricsCollector.basicPublishUnrouted
(Channel channel) void
MetricsCollector.basicReject
(Channel channel, long deliveryTag) void
NoOpMetricsCollector.basicReject
(Channel channel, long deliveryTag) void
MetricsCollector.closeChannel
(Channel channel) void
NoOpMetricsCollector.closeChannel
(Channel channel) void
MetricsCollector.consumedMessage
(Channel channel, long deliveryTag, boolean autoAck) void
MetricsCollector.consumedMessage
(Channel channel, long deliveryTag, String consumerTag) void
NoOpMetricsCollector.consumedMessage
(Channel channel, long deliveryTag, boolean autoAck) void
NoOpMetricsCollector.consumedMessage
(Channel channel, long deliveryTag, String consumerTag) void
ExceptionHandler.handleChannelRecoveryException
(Channel ch, Throwable exception) Perform any required exception processing for the situation when the driver thread for the connection has an exception during channel recovery that it can't otherwise deal with.void
ExceptionHandler.handleConfirmListenerException
(Channel channel, Throwable exception) Perform any required exception processing for the situation when the driver thread for the connection has called a ConfirmListener's handleAck or handleNack method, and that method has thrown an exception.void
ExceptionHandler.handleConsumerException
(Channel channel, Throwable exception, Consumer consumer, String consumerTag, String methodName) Perform any required exception processing for the situation when the driver thread for the connection has called a method on a Consumer, and that method has thrown an exception.void
ExceptionHandler.handleReturnListenerException
(Channel channel, Throwable exception) Perform any required exception processing for the situation when the driver thread for the connection has called a ReturnListener's handleReturn method, and that method has thrown an exception.void
ExceptionHandler.handleTopologyRecoveryException
(Connection conn, Channel ch, TopologyRecoveryException exception) Perform any required exception processing for the situation when the driver thread for the connection has an exception during topology (exchanges, queues, bindings, consumers) recovery that it can't otherwise deal with.void
MetricsCollector.newChannel
(Channel channel) void
NoOpMetricsCollector.newChannel
(Channel channel) ModifierConstructorDescriptionDefaultConsumer
(Channel channel) Constructs a new instance and records its association to the passed-in channel.MapRpcServer
(Channel channel) MapRpcServer
(Channel channel, String queueName) Deprecated.Deprecated.useRpcClient(RpcClientParams)
instead, will be removed in 6.0.0Deprecated.useRpcClient(RpcClientParams)
instead, will be removed in 6.0.0Deprecated.useRpcClient(RpcClientParams)
instead, will be removed in 6.0.0Creates an RpcServer listening on a temporary exclusive autodelete queue.If the passed-in queue name is null, creates a server-named temporary exclusive autodelete queue to use; otherwise expects the queue to have already been declared.StringRpcServer
(Channel channel) StringRpcServer
(Channel channel, String queueName) -
Uses of Channel in com.rabbitmq.client.impl
Modifier and TypeMethodDescriptionAMQConnection.createChannel()
Public API - Create a new channel, using an internally allocated channel number.AMQConnection.createChannel
(int channelNumber) Public API - Create a new channel, using the specified channel number if possible.Modifier and TypeMethodDescriptionvoid
void
void
AbstractMetricsCollector.basicCancel
(Channel channel, String consumerTag) void
AbstractMetricsCollector.basicConsume
(Channel channel, String consumerTag, boolean autoAck) void
void
AbstractMetricsCollector.basicPublish
(Channel channel) void
AbstractMetricsCollector.basicPublishAck
(Channel channel, long deliveryTag, boolean multiple) void
AbstractMetricsCollector.basicPublishFailure
(Channel channel, Throwable cause) void
AbstractMetricsCollector.basicPublishNack
(Channel channel, long deliveryTag, boolean multiple) void
AbstractMetricsCollector.basicPublishUnrouted
(Channel channel) void
AbstractMetricsCollector.basicReject
(Channel channel, long deliveryTag) void
AbstractMetricsCollector.closeChannel
(Channel channel) void
AbstractMetricsCollector.consumedMessage
(Channel channel, long deliveryTag, boolean autoAck) void
AbstractMetricsCollector.consumedMessage
(Channel channel, long deliveryTag, String consumerTag) protected abstract void
AbstractMetricsCollector.decrementChannelCount
(Channel channel) Decrements channel count.protected void
MicrometerMetricsCollector.decrementChannelCount
(Channel channel) protected void
OpenTelemetryMetricsCollector.decrementChannelCount
(Channel channel) protected void
StandardMetricsCollector.decrementChannelCount
(Channel channel) protected void
ForgivingExceptionHandler.handleChannelKiller
(Channel channel, Throwable exception, String what) protected void
StrictExceptionHandler.handleChannelKiller
(Channel channel, Throwable exception, String what) protected void
StrictExceptionHandler.handleChannelKiller
(Channel channel, Throwable exception, String logMessage, String closeMessage) void
ForgivingExceptionHandler.handleChannelRecoveryException
(Channel ch, Throwable exception) void
ForgivingExceptionHandler.handleConfirmListenerException
(Channel channel, Throwable exception) void
StrictExceptionHandler.handleConfirmListenerException
(Channel channel, Throwable exception) void
ForgivingExceptionHandler.handleConsumerException
(Channel channel, Throwable exception, Consumer consumer, String consumerTag, String methodName) void
StrictExceptionHandler.handleConsumerException
(Channel channel, Throwable exception, Consumer consumer, String consumerTag, String methodName) void
ForgivingExceptionHandler.handleReturnListenerException
(Channel channel, Throwable exception) void
StrictExceptionHandler.handleReturnListenerException
(Channel channel, Throwable exception) void
ForgivingExceptionHandler.handleTopologyRecoveryException
(Connection conn, Channel ch, TopologyRecoveryException exception) protected abstract void
AbstractMetricsCollector.incrementChannelCount
(Channel channel) Increments channel count.protected void
MicrometerMetricsCollector.incrementChannelCount
(Channel channel) protected void
OpenTelemetryMetricsCollector.incrementChannelCount
(Channel channel) protected void
StandardMetricsCollector.incrementChannelCount
(Channel channel) void
AbstractMetricsCollector.newChannel
(Channel channel) void
ConsumerWorkService.registerKey
(Channel channel) void
ConsumerWorkService.setUnlimited
(Channel channel, boolean unlimited) void
Stop executing all consumer work for a particular channel -
Uses of Channel in com.rabbitmq.client.impl.recovery
Modifier and TypeClassDescriptionclass
Channel
implementation that is automatically recovered during connection recovery.class
ChannelN
modification that keeps track of delivery tags and avoids sendingModifier and TypeMethodDescriptionAutorecoveringConnection.createChannel()
AutorecoveringConnection.createChannel
(int channelNumber) AutorecoveringChannel.getDelegate()
RecordedEntity.getDelegateChannel()
-
Uses of Channel in com.rabbitmq.tools.jsonrpc
ModifierConstructorDescriptionJsonRpcClient
(Channel channel, String exchange, String routingKey) JsonRpcClient
(Channel channel, String exchange, String routingKey, int timeout) Construct a new JsonRpcClient, passing the parameters through to RpcClient's constructor.JsonRpcClient
(Channel channel, String exchange, String routingKey, int timeout, JsonRpcMapper mapper) Construct a new JsonRpcClient, passing the parameters through to RpcClient's constructor.JsonRpcServer
(Channel channel, Class<?> interfaceClass, Object interfaceInstance) Construct a server that talks to the outside world using the given channel, and constructs a fresh temporary queue.JsonRpcServer
(Channel channel, Class<?> interfaceClass, Object interfaceInstance, JsonRpcMapper mapper) JsonRpcServer
(Channel channel, String queueName, Class<?> interfaceClass, Object interfaceInstance) Construct a server that talks to the outside world using the given channel and queue name.JsonRpcServer
(Channel channel, String queueName, Class<?> interfaceClass, Object interfaceInstance, JsonRpcMapper mapper)
RpcClient(RpcClientParams)
instead, will be removed in 6.0.0