public static interface CommandLatencyCollectorOptions.Builder
CommandLatencyCollectorOptions.| Modifier and Type | Method and Description |
|---|---|
CommandLatencyCollectorOptions |
build() |
CommandLatencyCollectorOptions.Builder |
disable()
Disable the latency collector.
|
CommandLatencyCollectorOptions.Builder |
enable()
Enable the latency collector.
|
CommandLatencyCollectorOptions.Builder |
localDistinction(boolean localDistinction)
Enables per connection metrics tracking insead of per host/port.
|
CommandLatencyCollectorOptions.Builder |
resetLatenciesAfterEvent(boolean resetLatenciesAfterEvent)
Sets whether the recorded latencies should be reset once the metrics event was emitted.
|
CommandLatencyCollectorOptions.Builder |
targetPercentiles(double[] targetPercentiles)
Sets the emitted percentiles.
|
CommandLatencyCollectorOptions.Builder |
targetUnit(TimeUnit targetUnit)
Set the target unit for the latencies.
|
CommandLatencyCollectorOptions.Builder disable()
CommandLatencyCollectorOptions.Builder enable()
DefaultCommandLatencyCollectorOptions.Builder.CommandLatencyCollectorOptions.Builder localDistinction(boolean localDistinction)
true, multiple connections to the same
host/connection point will be recorded separately which allows to inspect every connection individually. If
false, multiple connections to the same host/connection point will be recorded together. This allows a
consolidated view on one particular service. Defaults to false. See
DefaultCommandLatencyCollectorOptions.DEFAULT_LOCAL_DISTINCTION.localDistinction - true if latencies are recorded distinct on local level (per connection).CommandLatencyCollectorOptions.Builder.CommandLatencyCollectorOptions.Builder resetLatenciesAfterEvent(boolean resetLatenciesAfterEvent)
true. See
DefaultCommandLatencyCollectorOptions.DEFAULT_RESET_LATENCIES_AFTER_EVENT.resetLatenciesAfterEvent - true if the recorded latencies should be reset once the metrics event was
emitted.CommandLatencyCollectorOptions.Builder.CommandLatencyCollectorOptions.Builder targetPercentiles(double[] targetPercentiles)
DefaultCommandLatencyCollectorOptions.DEFAULT_TARGET_PERCENTILES.targetPercentiles - the percentiles which should be emitted, must not be null.CommandLatencyCollectorOptions.Builder.CommandLatencyCollectorOptions.Builder targetUnit(TimeUnit targetUnit)
TimeUnit.MILLISECONDS. See
DefaultCommandLatencyCollectorOptions.DEFAULT_TARGET_UNIT.targetUnit - the target unit, must not be null.CommandLatencyCollectorOptions.Builder.CommandLatencyCollectorOptions build()
CommandLatencyCollectorOptions.Copyright © 2021 lettuce.io. All rights reserved.