Package com.rabbitmq.client
Interface MetricsCollector
- All Known Implementing Classes:
AbstractMetricsCollector
,MicrometerMetricsCollector
,NoOpMetricsCollector
,OpenTelemetryMetricsCollector
,StandardMetricsCollector
public interface MetricsCollector
Interface to gather execution data of the client.
Note transactions are not supported: they deal with
publishing and acknowledgments and the collector contract
assumes then that published messages and acks sent
in a transaction are always counted, even if the
transaction is rolled back.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
basicCancel
(Channel channel, String consumerTag) void
basicConsume
(Channel channel, String consumerTag, boolean autoAck) void
default void
void
basicPublish
(Channel channel) default void
basicPublishAck
(Channel channel, long deliveryTag, boolean multiple) default void
basicPublishFailure
(Channel channel, Throwable cause) default void
basicPublishNack
(Channel channel, long deliveryTag, boolean multiple) default void
basicPublishUnrouted
(Channel channel) void
basicReject
(Channel channel, long deliveryTag) default void
basicReject
(Channel channel, long deliveryTag, boolean requeue) void
closeChannel
(Channel channel) void
closeConnection
(Connection connection) void
consumedMessage
(Channel channel, long deliveryTag, boolean autoAck) void
consumedMessage
(Channel channel, long deliveryTag, String consumerTag) void
newChannel
(Channel channel) void
newConnection
(Connection connection)
-
Method Details
-
newConnection
-
closeConnection
-
newChannel
-
closeChannel
-
basicPublish
-
basicPublishFailure
-
basicPublishAck
-
basicPublishNack
-
basicPublishUnrouted
-
consumedMessage
-
consumedMessage
-
basicAck
-
basicNack
-
basicNack
-
basicReject
-
basicReject
-
basicConsume
-
basicCancel
-