- All Known Implementing Classes:
DefaultCommandLatencyCollectorOptions
public interface CommandLatencyCollectorOptions
Configuration interface for command latency collection.
- Author:
- Mark Paluch
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCommandLatencyCollectorOptions.BuilderBuilder forCommandLatencyCollectorOptions. -
Method Summary
Modifier and Type Method Description static CommandLatencyCollectorOptions.Builderbuilder()Returns a newCommandLatencyCollectorOptions.Builderto constructCommandLatencyCollectorOptions.static CommandLatencyCollectorOptionscreate()Create a newCommandLatencyCollectorOptionsinstance using default settings.static CommandLatencyCollectorOptionsdisabled()Create aCommandLatencyCollectorOptionsinstance with disabled event emission.booleanisEnabled()Returns whether the latency collector is enabled.booleanlocalDistinction()Returns whether to distinct latencies on local level.CommandLatencyCollectorOptions.Buildermutate()Returns a builder to create newCommandLatencyCollectorOptionswhose settings are replicated from the currentCommandLatencyCollectorOptions.booleanresetLatenciesAfterEvent()Returns whether the latencies should be reset once an event is emitted.double[]targetPercentiles()Returns the percentiles which should be exposed in the metric.TimeUnittargetUnit()Returns the targetTimeUnitfor the emitted latencies.
-
Method Details
-
create
Create a newCommandLatencyCollectorOptionsinstance using default settings.- Returns:
- a new instance of
CommandLatencyCollectorOptionsinstance using default settings - Since:
- 5.1
-
disabled
Create aCommandLatencyCollectorOptionsinstance with disabled event emission.- Returns:
- a new instance of
CommandLatencyCollectorOptionswith disabled event emission - Since:
- 5.1
-
builder
Returns a newCommandLatencyCollectorOptions.Builderto constructCommandLatencyCollectorOptions.- Returns:
- a new
CommandLatencyCollectorOptions.Builderto constructCommandLatencyCollectorOptions. - Since:
- 5.1
-
mutate
Returns a builder to create newCommandLatencyCollectorOptionswhose settings are replicated from the currentCommandLatencyCollectorOptions.- Returns:
- a a
CommandLatencyCollectorOptions.Builderto create newCommandLatencyCollectorOptionswhose settings are replicated from the currentCommandLatencyCollectorOptions - Since:
- 5.1
-
targetUnit
TimeUnit targetUnit()Returns the targetTimeUnitfor the emitted latencies.- Returns:
- the target
TimeUnitfor the emitted latencies
-
targetPercentiles
double[] targetPercentiles()Returns the percentiles which should be exposed in the metric.- Returns:
- the percentiles which should be exposed in the metric
-
resetLatenciesAfterEvent
boolean resetLatenciesAfterEvent()Returns whether the latencies should be reset once an event is emitted.- Returns:
trueif the latencies should be reset once an event is emitted.
-
localDistinction
boolean localDistinction()Returns whether to distinct latencies on local level. Iftrue, multiple connections to the same host/connection point will be recorded separately which allows to inspect every connection individually. Iffalse, multiple connections to the same host/connection point will be recorded together. This allows a consolidated view on one particular service.- Returns:
trueif latencies are recorded distinct on local level (per connection)
-
isEnabled
boolean isEnabled()Returns whether the latency collector is enabled.- Returns:
trueif the latency collector is enabled
-