- 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 of SocketAddresses) and command 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
Modifier and Type Method Description static CommandLatencyCollectorcreate(CommandLatencyCollectorOptions options)Creates a newCommandLatencyCollectorusingCommandLatencyCollectorOptions.static CommandLatencyCollectordisabled()Deprecated.Methods inherited from interface io.lettuce.core.metrics.CommandLatencyRecorder
isEnabled, recordCommandLatencyMethods inherited from interface io.lettuce.core.metrics.MetricCollector
retrieveMetrics, shutdown
-
Method Details
-
create
Creates a newCommandLatencyCollectorusingCommandLatencyCollectorOptions.- Parameters:
options- must not benull.- Returns:
- the
CommandLatencyCollectorusingCommandLatencyCollectorOptions.
-
disabled
Deprecated.since 6.0, useCommandLatencyRecorder.disabled()instead.Returns a disabled no-opCommandLatencyCollector.- Returns:
- a disabled no-op
CommandLatencyCollector. - Since:
- 5.1
-
CommandLatencyRecorder.disabled()instead.