Package org.infinispan.counter.api
Class CounterConfiguration
- java.lang.Object
-
- org.infinispan.counter.api.CounterConfiguration
-
public class CounterConfiguration extends java.lang.ObjectA 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.static classCounterConfiguration.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.Builderbuilder(CounterType type)intconcurrencyLevel()booleanequals(java.lang.Object o)inthashCode()longinitialValue()longlowerBound()Storagestorage()java.lang.StringtoString()CounterTypetype()longupperBound()
-
-
-
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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-