Class DropwizardCommandLatencyRecorder

  • All Implemented Interfaces:
    io.lettuce.core.metrics.CommandLatencyRecorder

    public class DropwizardCommandLatencyRecorder
    extends Object
    implements io.lettuce.core.metrics.CommandLatencyRecorder
    • Constructor Detail

      • DropwizardCommandLatencyRecorder

        public DropwizardCommandLatencyRecorder​(com.codahale.metrics.MetricRegistry metricRegistry,
                                                boolean isEnabled)
    • Method Detail

      • recordCommandLatency

        public void recordCommandLatency​(SocketAddress local,
                                         SocketAddress remote,
                                         io.lettuce.core.protocol.ProtocolKeyword protocolKeyword,
                                         long firstResponseLatency,
                                         long completionLatency)
        Specified by:
        recordCommandLatency in interface io.lettuce.core.metrics.CommandLatencyRecorder
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface io.lettuce.core.metrics.CommandLatencyRecorder