@ProtoTypeId(value=4001) public class CounterConfiguration extends Object
CounterManager.defineCounter(String,
CounterConfiguration)
.
The configuration must be built using builder(CounterType)
. Only CounterType
is
required.
CounterType
Modifier and Type | Class and Description |
---|---|
static class |
CounterConfiguration.Builder
The builder of
CounterConfiguration . |
Modifier and Type | Method and Description |
---|---|
static CounterConfiguration.Builder |
builder(CounterType type) |
int |
concurrencyLevel() |
boolean |
equals(Object o) |
int |
hashCode() |
long |
initialValue() |
long |
lowerBound() |
Storage |
storage() |
String |
toString() |
CounterType |
type() |
long |
upperBound() |
public static CounterConfiguration.Builder builder(CounterType type)
@ProtoField(number=1, defaultValue="0") public long initialValue()
@ProtoField(number=3, defaultValue="0") public long upperBound()
@ProtoField(number=2, defaultValue="0") public long lowerBound()
@ProtoField(number=5) public CounterType type()
@ProtoField(number=4, defaultValue="0") public int concurrencyLevel()
@ProtoField(number=6) public Storage storage()
Copyright © 2021 JBoss by Red Hat. All rights reserved.