public class DefaultCommandLatencyEventPublisher extends Object implements MetricEventPublisher
CommandLatencyCollector for command latencies.| Constructor and Description |
|---|
DefaultCommandLatencyEventPublisher(EventExecutorGroup eventExecutorGroup,
EventPublisherOptions options,
EventBus eventBus,
CommandLatencyCollector commandLatencyCollector) |
| Modifier and Type | Method and Description |
|---|---|
void |
emitMetricsEvent()
Emit immediately a metrics event.
|
boolean |
isEnabled()
Returns
true if the metric collector is enabled. |
void |
shutdown()
Shut down the event publisher.
|
public DefaultCommandLatencyEventPublisher(EventExecutorGroup eventExecutorGroup, EventPublisherOptions options, EventBus eventBus, CommandLatencyCollector commandLatencyCollector)
public boolean isEnabled()
MetricEventPublishertrue if the metric collector is enabled.isEnabled in interface MetricEventPublishertrue if the metric collector is enabled.public void shutdown()
MetricEventPublishershutdown in interface MetricEventPublisherpublic void emitMetricsEvent()
MetricEventPublisheremitMetricsEvent in interface MetricEventPublisherCopyright © 2021 lettuce.io. All rights reserved.