Package org.infinispan.counter.api
Class CounterConfiguration
- java.lang.Object
-
- org.infinispan.counter.api.CounterConfiguration
-
public class CounterConfiguration extends java.lang.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
.static class
CounterConfiguration.Externalize
-
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(java.lang.Object o)
int
hashCode()
long
initialValue()
long
lowerBound()
Storage
storage()
java.lang.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()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-