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). OnlyCounterTypeis required.- Since:
- 9.0
- Author:
- Pedro Ruivo
- See Also:
CounterType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCounterConfiguration.BuilderThe builder ofCounterConfiguration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CounterConfiguration.Builderbuilder(CounterType type)intconcurrencyLevel()booleanequals(Object o)inthashCode()longinitialValue()longlowerBound()Storagestorage()StringtoString()CounterTypetype()longupperBound()
-
-
-
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(number=5) public CounterType type()
-
concurrencyLevel
@ProtoField(number=4, defaultValue="0") public int concurrencyLevel()
-
storage
@ProtoField(number=6) public Storage storage()
-
toString
public String toString()
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
-