Class BoundedStrongCounter

  • All Implemented Interfaces:
    org.infinispan.counter.api.StrongCounter, CounterEventGenerator, InternalCounterAdmin

    public class BoundedStrongCounter
    extends AbstractStrongCounter
    A bounded strong consistent counter.

    When the boundaries are reached, a CounterOutOfBoundsException is thrown. Use CounterOutOfBoundsException.isUpperBoundReached() or CounterOutOfBoundsException.isLowerBoundReached() to check if upper or lower bound has been reached, respectively.

    Since:
    9.0
    Author:
    Pedro Ruivo