public class DynamicIOStatisticsBuilder
extends java.lang.Object
DynamicIOStatistics.
Instantiate through
IOStatisticsBinding.dynamicIOStatistics().| Constructor | Description |
|---|---|
DynamicIOStatisticsBuilder() |
| Modifier and Type | Method | Description |
|---|---|---|
IOStatistics |
build() |
Build the IOStatistics instance.
|
DynamicIOStatisticsBuilder |
withAtomicIntegerCounter(java.lang.String key,
java.util.concurrent.atomic.AtomicInteger source) |
Add a counter statistic to dynamically return the
latest value of the source.
|
DynamicIOStatisticsBuilder |
withAtomicIntegerGauge(java.lang.String key,
java.util.concurrent.atomic.AtomicInteger source) |
Add a gauge statistic to dynamically return the
latest value of the source.
|
DynamicIOStatisticsBuilder |
withAtomicIntegerMaximum(java.lang.String key,
java.util.concurrent.atomic.AtomicInteger source) |
Add a maximum statistic to dynamically return the
latest value of the source.
|
DynamicIOStatisticsBuilder |
withAtomicIntegerMinimum(java.lang.String key,
java.util.concurrent.atomic.AtomicInteger source) |
Add a minimum statistic to dynamically return the
latest value of the source.
|
DynamicIOStatisticsBuilder |
withAtomicLongCounter(java.lang.String key,
java.util.concurrent.atomic.AtomicLong source) |
Add a counter statistic to dynamically return the
latest value of the source.
|
DynamicIOStatisticsBuilder |
withAtomicLongGauge(java.lang.String key,
java.util.concurrent.atomic.AtomicLong source) |
Add a gauge statistic to dynamically return the
latest value of the source.
|
DynamicIOStatisticsBuilder |
withAtomicLongMaximum(java.lang.String key,
java.util.concurrent.atomic.AtomicLong source) |
Add a maximum statistic to dynamically return the
latest value of the source.
|
DynamicIOStatisticsBuilder |
withAtomicLongMinimum(java.lang.String key,
java.util.concurrent.atomic.AtomicLong source) |
Add a minimum statistic to dynamically return the
latest value of the source.
|
DynamicIOStatisticsBuilder |
withLongFunctionCounter(java.lang.String key,
java.util.function.ToLongFunction<java.lang.String> eval) |
Add a new evaluator to the counter statistics.
|
DynamicIOStatisticsBuilder |
withLongFunctionGauge(java.lang.String key,
java.util.function.ToLongFunction<java.lang.String> eval) |
Add a new evaluator to the gauge statistics.
|
DynamicIOStatisticsBuilder |
withLongFunctionMaximum(java.lang.String key,
java.util.function.ToLongFunction<java.lang.String> eval) |
Add a new evaluator to the maximum statistics.
|
DynamicIOStatisticsBuilder |
withLongFunctionMinimum(java.lang.String key,
java.util.function.ToLongFunction<java.lang.String> eval) |
Add a new evaluator to the minimum statistics.
|
DynamicIOStatisticsBuilder |
withMeanStatisticFunction(java.lang.String key,
java.util.function.Function<java.lang.String,MeanStatistic> eval) |
Add a new evaluator to the mean statistics.
|
DynamicIOStatisticsBuilder |
withMutableCounter(java.lang.String key,
MutableCounterLong source) |
Build a dynamic counter statistic from a
MutableCounterLong. |
public IOStatistics build()
java.lang.IllegalStateException - if the builder has already been built.public DynamicIOStatisticsBuilder withLongFunctionCounter(java.lang.String key, java.util.function.ToLongFunction<java.lang.String> eval)
key - key of this statisticeval - evaluator for the statisticpublic DynamicIOStatisticsBuilder withAtomicLongCounter(java.lang.String key, java.util.concurrent.atomic.AtomicLong source)
key - key of this statisticsource - atomic long counterpublic DynamicIOStatisticsBuilder withAtomicIntegerCounter(java.lang.String key, java.util.concurrent.atomic.AtomicInteger source)
key - key of this statisticsource - atomic int counterpublic DynamicIOStatisticsBuilder withMutableCounter(java.lang.String key, MutableCounterLong source)
MutableCounterLong.key - key of this statisticsource - mutable long counterpublic DynamicIOStatisticsBuilder withLongFunctionGauge(java.lang.String key, java.util.function.ToLongFunction<java.lang.String> eval)
key - key of this statisticeval - evaluator for the statisticpublic DynamicIOStatisticsBuilder withAtomicLongGauge(java.lang.String key, java.util.concurrent.atomic.AtomicLong source)
key - key of this statisticsource - atomic long gaugepublic DynamicIOStatisticsBuilder withAtomicIntegerGauge(java.lang.String key, java.util.concurrent.atomic.AtomicInteger source)
key - key of this statisticsource - atomic int gaugepublic DynamicIOStatisticsBuilder withLongFunctionMinimum(java.lang.String key, java.util.function.ToLongFunction<java.lang.String> eval)
key - key of this statisticeval - evaluator for the statisticpublic DynamicIOStatisticsBuilder withAtomicLongMinimum(java.lang.String key, java.util.concurrent.atomic.AtomicLong source)
key - key of this statisticsource - atomic long minimumpublic DynamicIOStatisticsBuilder withAtomicIntegerMinimum(java.lang.String key, java.util.concurrent.atomic.AtomicInteger source)
key - key of this statisticsource - atomic int minimumpublic DynamicIOStatisticsBuilder withLongFunctionMaximum(java.lang.String key, java.util.function.ToLongFunction<java.lang.String> eval)
key - key of this statisticeval - evaluator for the statisticpublic DynamicIOStatisticsBuilder withAtomicLongMaximum(java.lang.String key, java.util.concurrent.atomic.AtomicLong source)
key - key of this statisticsource - atomic long maximumpublic DynamicIOStatisticsBuilder withAtomicIntegerMaximum(java.lang.String key, java.util.concurrent.atomic.AtomicInteger source)
key - key of this statisticsource - atomic int maximumpublic DynamicIOStatisticsBuilder withMeanStatisticFunction(java.lang.String key, java.util.function.Function<java.lang.String,MeanStatistic> eval)
key - key of this statisticeval - evaluator for the statisticCopyright © 2008–2025 Apache Software Foundation. All rights reserved.