Package io.lettuce.core.metrics
Interface CommandLatencyCollector
-
- All Superinterfaces:
CommandLatencyRecorder
,MetricCollector<Map<CommandLatencyId,CommandMetrics>>
- All Known Implementing Classes:
DefaultCommandLatencyCollector
public interface CommandLatencyCollector extends MetricCollector<Map<CommandLatencyId,CommandMetrics>>, CommandLatencyRecorder
MetricCollector
for command latencies. Command latencies are collected per connection (identified by local/remote tuples ofSocketAddress
es) andcommand type
. Two command latencies are available:- Latency between command send and first response (first response received)
- Latency between command send and command completion (complete response received)
- Since:
- 3.4
- Author:
- Mark Paluch
-
-
Method Summary
All Methods Static Methods Deprecated Methods Modifier and Type Method Description static CommandLatencyCollector
create(CommandLatencyCollectorOptions options)
Creates a newCommandLatencyCollector
usingCommandLatencyCollectorOptions
.static CommandLatencyCollector
disabled()
Deprecated.since 6.0, useCommandLatencyRecorder.disabled()
instead.-
Methods inherited from interface io.lettuce.core.metrics.CommandLatencyRecorder
isEnabled, recordCommandLatency, recordCommandLatency
-
Methods inherited from interface io.lettuce.core.metrics.MetricCollector
retrieveMetrics, shutdown
-
-
-
-
Method Detail
-
create
static CommandLatencyCollector create(CommandLatencyCollectorOptions options)
Creates a newCommandLatencyCollector
usingCommandLatencyCollectorOptions
.- Parameters:
options
- must not benull
.- Returns:
- the
CommandLatencyCollector
usingCommandLatencyCollectorOptions
.
-
disabled
@Deprecated static CommandLatencyCollector disabled()
Deprecated.since 6.0, useCommandLatencyRecorder.disabled()
instead.Returns a disabled no-opCommandLatencyCollector
.- Returns:
- a disabled no-op
CommandLatencyCollector
. - Since:
- 5.1
-
-