public interface FaultToleranceMetrics
MetricRegistry.
The metrics are bound to a specific invocation context which is not an argument to each of the provided methods but
passed to the implementation upon construction. For another invocation another metrics instance is bound.| Modifier and Type | Field and Description |
|---|---|
static FaultToleranceMetrics |
DISABLED
Can be used as NULL object when metrics are disabled so avoid testing for enabled but still do essentially NOOPs.
|
static final FaultToleranceMetrics DISABLED
default void incrementCounter(String metric)
metric - full name of the metric with %s used as placeholder for the method namedefault void addToHistogram(String metric, long nanos)
metric - full name of the metric with %s used as placeholder for the method namenanos - amount of nanoseconds to add to the histogram (>= 0)default void linkGauge(String metric, LongSupplier gauge)
metric - full name of the metric with%s used as placeholder for the method namegauge - the gauge function to use in case the gauge is not already linkeddefault void incrementInvocationsTotal()
default void incrementInvocationsFailedTotal()
default void incrementRetryCallsSucceededNotRetriedTotal()
default void incrementRetryCallsSucceededRetriedTotal()
default void incrementRetryCallsFailedTotal()
default void incrementRetryRetriesTotal()
default void addTimeoutExecutionDuration(long duration)
default void incrementTimeoutCallsTimedOutTotal()
default void incrementTimeoutCallsNotTimedOutTotal()
default void incrementCircuitbreakerCallsSucceededTotal()
default void incrementCircuitbreakerCallsFailedTotal()
default void incrementCircuitbreakerCallsPreventedTotal()
default void incrementCircuitbreakerOpenedTotal()
default void linkCircuitbreakerOpenTotal(LongSupplier gauge)
default void linkCircuitbreakerHalfOpenTotal(LongSupplier gauge)
default void linkCircuitbreakerClosedTotal(LongSupplier gauge)
default void incrementBulkheadCallsAcceptedTotal()
default void incrementBulkheadCallsRejectedTotal()
default void linkBulkheadConcurrentExecutions(LongSupplier gauge)
default void linkBulkheadWaitingQueuePopulation(LongSupplier gauge)
default void addBulkheadExecutionDuration(long duration)
default void addBulkheadWaitingDuration(long duration)
default void incrementFallbackCallsTotal()
Copyright © 2019. All rights reserved.