public class MicrometerCommandLatencyRecorder extends Object implements CommandLatencyRecorder
CommandLatencyRecorder| Constructor and Description |
|---|
MicrometerCommandLatencyRecorder(io.micrometer.core.instrument.MeterRegistry meterRegistry,
MicrometerOptions options)
|
| Modifier and Type | Method and Description |
|---|---|
protected io.micrometer.core.instrument.Timer |
completionTimer(CommandLatencyId commandLatencyId) |
protected io.micrometer.core.instrument.Timer |
firstResponseTimer(CommandLatencyId commandLatencyId) |
boolean |
isEnabled()
Returns
true if the metric collector is enabled. |
void |
recordCommandLatency(SocketAddress local,
SocketAddress remote,
ProtocolKeyword protocolKeyword,
long firstResponseLatency,
long completionLatency)
Record the command latency per
connectionPoint and commandType. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisabledpublic MicrometerCommandLatencyRecorder(io.micrometer.core.instrument.MeterRegistry meterRegistry,
MicrometerOptions options)
meterRegistry - options - public void recordCommandLatency(SocketAddress local, SocketAddress remote, ProtocolKeyword protocolKeyword, long firstResponseLatency, long completionLatency)
CommandLatencyRecorderconnectionPoint and commandType.recordCommandLatency in interface CommandLatencyRecorderlocal - the local addressremote - the remote addressprotocolKeyword - the command typefirstResponseLatency - latency value in TimeUnit.NANOSECONDS from send to the first
responsecompletionLatency - latency value in TimeUnit.NANOSECONDS from send to the command
completionpublic boolean isEnabled()
CommandLatencyRecordertrue if the metric collector is enabled.isEnabled in interface CommandLatencyRecordertrue if the metric collector is enabledprotected io.micrometer.core.instrument.Timer completionTimer(CommandLatencyId commandLatencyId)
protected io.micrometer.core.instrument.Timer firstResponseTimer(CommandLatencyId commandLatencyId)
Copyright © 2023 lettuce.io. All rights reserved.