Module lettuce.core

Interface MetricEventPublisher

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
    void emitMetricsEvent()
    Emit immediately a metrics event.
    boolean isEnabled()
    Returns true if the metric collector is enabled.
    void shutdown()
    Shut down the event publisher.
  • Method Details

    • emitMetricsEvent

      void emitMetricsEvent()
      Emit immediately a metrics event.
    • isEnabled

      boolean isEnabled()
      Returns true if the metric collector is enabled.
      Returns:
      true if the metric collector is enabled
    • shutdown

      void shutdown()
      Shut down the event publisher.