Package com.rabbitmq.stream.metrics
Class DropwizardMetricsCollector
java.lang.Object
com.rabbitmq.stream.metrics.DropwizardMetricsCollector
- All Implemented Interfaces:
MetricsCollector
-
Constructor Summary
ConstructorDescriptionDropwizardMetricsCollector
(com.codahale.metrics.MetricRegistry metricRegistry) DropwizardMetricsCollector
(com.codahale.metrics.MetricRegistry registry, String metricsPrefix) -
Method Summary
Modifier and TypeMethodDescriptionvoid
chunk
(int entriesCount) void
void
consume
(long count) void
void
publish
(int count) void
publishConfirm
(int count) void
publishError
(int count) void
readBytes
(int readBytes) void
writtenBytes
(int writtenBytes)
-
Constructor Details
-
DropwizardMetricsCollector
public DropwizardMetricsCollector(com.codahale.metrics.MetricRegistry registry, String metricsPrefix) -
DropwizardMetricsCollector
public DropwizardMetricsCollector() -
DropwizardMetricsCollector
public DropwizardMetricsCollector(com.codahale.metrics.MetricRegistry metricRegistry)
-
-
Method Details
-
openConnection
public void openConnection()- Specified by:
openConnection
in interfaceMetricsCollector
-
closeConnection
public void closeConnection()- Specified by:
closeConnection
in interfaceMetricsCollector
-
publish
public void publish(int count) - Specified by:
publish
in interfaceMetricsCollector
-
publishConfirm
public void publishConfirm(int count) - Specified by:
publishConfirm
in interfaceMetricsCollector
-
publishError
public void publishError(int count) - Specified by:
publishError
in interfaceMetricsCollector
-
chunk
public void chunk(int entriesCount) - Specified by:
chunk
in interfaceMetricsCollector
-
consume
public void consume(long count) - Specified by:
consume
in interfaceMetricsCollector
-
writtenBytes
public void writtenBytes(int writtenBytes) - Specified by:
writtenBytes
in interfaceMetricsCollector
-
readBytes
public void readBytes(int readBytes) - Specified by:
readBytes
in interfaceMetricsCollector
-