public interface CommandLatencyCollector extends MetricCollector<Map<CommandLatencyId,CommandMetrics>>
MetricCollector for command latencies. Command latencies are collected per connection (identified by local/remote
tuples of SocketAddresses) and command type. Two command latencies are available:
| Modifier and Type | Method and Description |
|---|---|
void |
recordCommandLatency(SocketAddress local,
SocketAddress remote,
ProtocolKeyword commandType,
long firstResponseLatency,
long completionLatency)
Record the command latency per
connectionPoint and commandType. |
isEnabled, retrieveMetrics, shutdownvoid 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 completionCopyright © 2016. All rights reserved.