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 TypeMethodDescriptionvoidvoidbasicCancel(Channel channel, String consumerTag) voidbasicConsume(Channel channel, String consumerTag, boolean autoAck) voiddefault voidvoidbasicPublish(Channel channel) default voidbasicPublishAck(Channel channel, long deliveryTag, boolean multiple) default voidbasicPublishFailure(Channel channel, Throwable cause) default voidbasicPublishNack(Channel channel, long deliveryTag, boolean multiple) default voidbasicPublishUnrouted(Channel channel) voidbasicReject(Channel channel, long deliveryTag) default voidbasicReject(Channel channel, long deliveryTag, boolean requeue) voidcloseChannel(Channel channel) voidcloseConnection(Connection connection) voidconsumedMessage(Channel channel, long deliveryTag, boolean autoAck) voidconsumedMessage(Channel channel, long deliveryTag, String consumerTag) voidnewChannel(Channel channel) voidnewConnection(Connection connection)
-
Method Details
-
newConnection
-
closeConnection
-
newChannel
-
closeChannel
-
basicPublish
-
basicPublishFailure
-
basicPublishAck
-
basicPublishNack
-
basicPublishUnrouted
-
consumedMessage
-
consumedMessage
-
basicAck
-
basicNack
-
basicNack
-
basicReject
-
basicReject
-
basicConsume
-
basicCancel
-