@FunctionalInterface public interface CommandLatencyRecorder
SocketAddresses) and command type.| Modifier and Type | Method and Description |
|---|---|
static CommandLatencyRecorder |
disabled()
Returns a disabled no-op
CommandLatencyRecorder. |
default boolean |
isEnabled()
Returns
true if the metric collector is enabled. |
void |
recordCommandLatency(SocketAddress local,
SocketAddress remote,
ProtocolKeyword commandType,
long firstResponseLatency,
long completionLatency)
Record the command latency per
connectionPoint and commandType. |
static CommandLatencyRecorder disabled()
CommandLatencyRecorder.CommandLatencyRecorder.void recordCommandLatency(SocketAddress local, SocketAddress remote, ProtocolKeyword commandType, long firstResponseLatency, long completionLatency)
connectionPoint and commandType.local - the local addressremote - the remote addresscommandType - the command typefirstResponseLatency - latency value in TimeUnit.NANOSECONDS from send to the first
responsecompletionLatency - latency value in TimeUnit.NANOSECONDS from send to the command
completiondefault boolean isEnabled()
true if the metric collector is enabled.true if the metric collector is enabledCopyright © 2021 lettuce.io. All rights reserved.