- All Known Implementing Classes:
DefaultCommandLatencyEventPublisher
public interface MetricEventPublisher
Event publisher which publishes metrics by the use of
events.- Since:
- 3.4
- Author:
- Mark Paluch
-
Method Summary
Modifier and Type Method Description voidemitMetricsEvent()Emit immediately a metrics event.booleanisEnabled()Returnstrueif the metric collector is enabled.voidshutdown()Shut down the event publisher.
-
Method Details
-
emitMetricsEvent
void emitMetricsEvent()Emit immediately a metrics event. -
isEnabled
boolean isEnabled()Returnstrueif the metric collector is enabled.- Returns:
trueif the metric collector is enabled
-
shutdown
void shutdown()Shut down the event publisher.
-