public class DefaultCommandLatencyCollectorOptions extends Object implements CommandLatencyCollectorOptions
CommandLatencyCollectorOptions.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultCommandLatencyCollectorOptions.Builder
Builder for
DefaultCommandLatencyCollectorOptions. |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENABLED |
static boolean |
DEFAULT_LOCAL_DISTINCTION |
static boolean |
DEFAULT_RESET_LATENCIES_AFTER_EVENT |
static double[] |
DEFAULT_TARGET_PERCENTILES |
static TimeUnit |
DEFAULT_TARGET_UNIT |
static boolean |
DEFAULT_USE_NO_PAUSE_DETECTOR |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultCommandLatencyCollectorOptions(DefaultCommandLatencyCollectorOptions.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
static DefaultCommandLatencyCollectorOptions.Builder |
builder()
Returns a new
DefaultCommandLatencyCollectorOptions.Builder to construct
DefaultCommandLatencyCollectorOptions. |
static DefaultCommandLatencyCollectorOptions |
create()
Create a new
DefaultCommandLatencyCollectorOptions instance using default settings. |
static DefaultCommandLatencyCollectorOptions |
disabled()
Create a
DefaultCommandLatencyCollectorOptions instance with disabled event emission. |
boolean |
isEnabled()
Returns whether the latency collector is enabled.
|
boolean |
localDistinction()
Returns whether to distinct latencies on local level.
|
DefaultCommandLatencyCollectorOptions.Builder |
mutate()
Returns a builder to create new
DefaultCommandLatencyCollectorOptions whose settings are replicated from the
current DefaultCommandLatencyCollectorOptions. |
boolean |
resetLatenciesAfterEvent()
Returns whether the latencies should be reset once an event is emitted.
|
double[] |
targetPercentiles()
Returns the percentiles which should be exposed in the metric.
|
TimeUnit |
targetUnit()
Returns the target
TimeUnit for the emitted latencies. |
boolean |
usePauseDetector()
Returns whether PauseDetector is enabled.
|
public static final TimeUnit DEFAULT_TARGET_UNIT
public static final double[] DEFAULT_TARGET_PERCENTILES
public static final boolean DEFAULT_RESET_LATENCIES_AFTER_EVENT
public static final boolean DEFAULT_LOCAL_DISTINCTION
public static final boolean DEFAULT_ENABLED
public static final boolean DEFAULT_USE_NO_PAUSE_DETECTOR
protected DefaultCommandLatencyCollectorOptions(DefaultCommandLatencyCollectorOptions.Builder builder)
public static DefaultCommandLatencyCollectorOptions create()
DefaultCommandLatencyCollectorOptions instance using default settings.create in interface CommandLatencyCollectorOptionsDefaultCommandLatencyCollectorOptions instance using default settingspublic static DefaultCommandLatencyCollectorOptions disabled()
DefaultCommandLatencyCollectorOptions instance with disabled event emission.disabled in interface CommandLatencyCollectorOptionsDefaultCommandLatencyCollectorOptions with disabled event emissionpublic static DefaultCommandLatencyCollectorOptions.Builder builder()
DefaultCommandLatencyCollectorOptions.Builder to construct
DefaultCommandLatencyCollectorOptions.builder in interface CommandLatencyCollectorOptionsDefaultCommandLatencyCollectorOptions.Builder to construct
DefaultCommandLatencyCollectorOptions.public DefaultCommandLatencyCollectorOptions.Builder mutate()
DefaultCommandLatencyCollectorOptions whose settings are replicated from the
current DefaultCommandLatencyCollectorOptions.mutate in interface CommandLatencyCollectorOptionsCommandLatencyCollectorOptions.Builder to create new DefaultCommandLatencyCollectorOptions
whose settings are replicated from the current DefaultCommandLatencyCollectorOptionspublic TimeUnit targetUnit()
CommandLatencyCollectorOptionsTimeUnit for the emitted latencies.targetUnit in interface CommandLatencyCollectorOptionsTimeUnit for the emitted latenciespublic double[] targetPercentiles()
CommandLatencyCollectorOptionstargetPercentiles in interface CommandLatencyCollectorOptionspublic boolean resetLatenciesAfterEvent()
CommandLatencyCollectorOptionsresetLatenciesAfterEvent in interface CommandLatencyCollectorOptionstrue if the latencies should be reset once an event is emitted.public boolean localDistinction()
CommandLatencyCollectorOptionstrue, 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.localDistinction in interface CommandLatencyCollectorOptionstrue if latencies are recorded distinct on local level (per connection)public boolean isEnabled()
CommandLatencyCollectorOptionsisEnabled in interface CommandLatencyCollectorOptionstrue if the latency collector is enabledpublic boolean usePauseDetector()
CommandLatencyCollectorOptionsusePauseDetector in interface CommandLatencyCollectorOptionstrue if the PauseDetector is enabledCopyright © 2023 lettuce.io. All rights reserved.