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 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:
  • Method Details

    • 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()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object