Package org.infinispan.counter.api
Class CounterConfiguration
java.lang.Object
org.infinispan.counter.api.CounterConfiguration
A counter configuration used to define counters cluster wide via
CounterManager.defineCounter(String, CounterConfiguration).
The configuration must be built using builder(CounterType). Only CounterType is
required.
- Since:
- 9.0
- Author:
- Pedro Ruivo
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CounterConfiguration.Builderbuilder(CounterType type) intbooleaninthashCode()longlonglifespan()longstorage()toString()type()long
-
Method Details
-
builder
-
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
-
concurrencyLevel
@ProtoField(number=4, defaultValue="0") public int concurrencyLevel() -
storage
-
lifespan
@ProtoField(number=7, defaultValue="0") public long lifespan() -
toString
-
equals
-
hashCode
public int hashCode()
-