Package com.rabbitmq.client.amqp.metrics
Class NoOpMetricsCollector
java.lang.Object
com.rabbitmq.client.amqp.metrics.NoOpMetricsCollector
- All Implemented Interfaces:
MetricsCollector
No-operation implementation of
MetricsCollector
.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.rabbitmq.client.amqp.metrics.MetricsCollector
MetricsCollector.ConsumeDisposition, MetricsCollector.PublishDisposition
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when aConnection
is closed.void
Called when aConsumer
is closed.void
Called when aPublisher
is closed.void
consume()
void
consumeDisposition
(MetricsCollector.ConsumeDisposition disposition) void
Called when a newConnection
is opened.void
Called when a newConsumer
is opened.void
Called when a newPublisher
is opened.void
publish()
Called when aMessage
is published.void
publishDisposition
(MetricsCollector.PublishDisposition disposition) Called when aMessage
is settled by the broker.
-
Field Details
-
INSTANCE
-
-
Method Details
-
openConnection
public void openConnection()Description copied from interface:MetricsCollector
Called when a newConnection
is opened.- Specified by:
openConnection
in interfaceMetricsCollector
-
closeConnection
public void closeConnection()Description copied from interface:MetricsCollector
Called when aConnection
is closed.- Specified by:
closeConnection
in interfaceMetricsCollector
-
openPublisher
public void openPublisher()Description copied from interface:MetricsCollector
Called when a newPublisher
is opened.- Specified by:
openPublisher
in interfaceMetricsCollector
-
closePublisher
public void closePublisher()Description copied from interface:MetricsCollector
Called when aPublisher
is closed.- Specified by:
closePublisher
in interfaceMetricsCollector
-
openConsumer
public void openConsumer()Description copied from interface:MetricsCollector
Called when a newConsumer
is opened.- Specified by:
openConsumer
in interfaceMetricsCollector
-
closeConsumer
public void closeConsumer()Description copied from interface:MetricsCollector
Called when aConsumer
is closed.- Specified by:
closeConsumer
in interfaceMetricsCollector
-
publish
public void publish()Description copied from interface:MetricsCollector
Called when aMessage
is published.- Specified by:
publish
in interfaceMetricsCollector
-
publishDisposition
Description copied from interface:MetricsCollector
Called when aMessage
is settled by the broker.- Specified by:
publishDisposition
in interfaceMetricsCollector
- Parameters:
disposition
- disposition (outcome)
-
consume
public void consume()Description copied from interface:MetricsCollector
- Specified by:
consume
in interfaceMetricsCollector
-
consumeDisposition
Description copied from interface:MetricsCollector
- Specified by:
consumeDisposition
in interfaceMetricsCollector
- Parameters:
disposition
-
-