Package org.infinispan.counter.api
Class CounterConfiguration
- java.lang.Object
-
- org.infinispan.counter.api.CounterConfiguration
-
public class CounterConfiguration extends Object
A counter configuration used to define counters cluster wide viaCounterManager.defineCounter(String, CounterConfiguration)
.The configuration must be built using
builder(CounterType)
. OnlyCounterType
is required.- Since:
- 9.0
- Author:
- Pedro Ruivo
- See Also:
CounterType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CounterConfiguration.Builder
The builder ofCounterConfiguration
.
-
Field Summary
Fields Modifier and Type Field Description static AdvancedExternalizer<CounterConfiguration>
EXTERNALIZER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
EXTERNALIZER
public static final AdvancedExternalizer<CounterConfiguration> EXTERNALIZER
-
-
Method Detail
-
builder
public static CounterConfiguration.Builder builder(CounterType type)
-
initialValue
public long initialValue()
-
upperBound
public long upperBound()
-
lowerBound
public long lowerBound()
-
type
public CounterType type()
-
concurrencyLevel
public int concurrencyLevel()
-
storage
public Storage storage()
-
-