Package com.rabbitmq.client
Interface MetricsCollector
-
- All Known Implementing Classes:
AbstractMetricsCollector,MicrometerMetricsCollector,NoOpMetricsCollector,StandardMetricsCollector
public interface MetricsCollectorInterface 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbasicAck(Channel channel, long deliveryTag, boolean multiple)voidbasicCancel(Channel channel, String consumerTag)voidbasicConsume(Channel channel, String consumerTag, boolean autoAck)voidbasicNack(Channel channel, long deliveryTag)voidbasicPublish(Channel channel)voidbasicReject(Channel channel, long deliveryTag)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 Detail
-
newConnection
void newConnection(Connection connection)
-
closeConnection
void closeConnection(Connection connection)
-
newChannel
void newChannel(Channel channel)
-
closeChannel
void closeChannel(Channel channel)
-
basicPublish
void basicPublish(Channel channel)
-
consumedMessage
void consumedMessage(Channel channel, long deliveryTag, boolean autoAck)
-
basicAck
void basicAck(Channel channel, long deliveryTag, boolean multiple)
-
basicNack
void basicNack(Channel channel, long deliveryTag)
-
basicReject
void basicReject(Channel channel, long deliveryTag)
-
-