Package org.infinispan.counter.api
Class CounterConfiguration
- java.lang.Object
-
- org.infinispan.counter.api.CounterConfiguration
-
@ProtoTypeId(4001) 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
.
-
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
lifespan()
long
lowerBound()
Storage
storage()
String
toString()
CounterType
type()
long
upperBound()
-
-
-
Method Detail
-
builder
public static CounterConfiguration.Builder builder(CounterType type)
-
initialValue
@ProtoField(number=1, defaultValue="0") public long initialValue()
-
upperBound
@ProtoField(number=3, defaultValue="0") public long upperBound()
-
lowerBound
@ProtoField(number=2, defaultValue="0") public long lowerBound()
-
type
@ProtoField(5) public CounterType type()
-
concurrencyLevel
@ProtoField(number=4, defaultValue="0") public int concurrencyLevel()
-
storage
@ProtoField(6) public Storage storage()
-
lifespan
@ProtoField(number=7, defaultValue="0") public long lifespan()
-
toString
public String toString()
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
-