Package io.dropwizard.redis.metrics
Class DropwizardCommandLatencyRecorder
- java.lang.Object
-
- io.dropwizard.redis.metrics.DropwizardCommandLatencyRecorder
-
- All Implemented Interfaces:
io.lettuce.core.metrics.CommandLatencyRecorder
public class DropwizardCommandLatencyRecorder extends Object implements io.lettuce.core.metrics.CommandLatencyRecorder
-
-
Constructor Summary
Constructors Constructor Description DropwizardCommandLatencyRecorder(com.codahale.metrics.MetricRegistry metricRegistry, boolean isEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEnabled()voidrecordCommandLatency(SocketAddress local, SocketAddress remote, io.lettuce.core.protocol.ProtocolKeyword protocolKeyword, long firstResponseLatency, long completionLatency)
-
-
-
Method Detail
-
recordCommandLatency
public void recordCommandLatency(SocketAddress local, SocketAddress remote, io.lettuce.core.protocol.ProtocolKeyword protocolKeyword, long firstResponseLatency, long completionLatency)
- Specified by:
recordCommandLatencyin interfaceio.lettuce.core.metrics.CommandLatencyRecorder
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceio.lettuce.core.metrics.CommandLatencyRecorder
-
-