Class AbstractStrongCounter

java.lang.Object
org.infinispan.counter.impl.strong.AbstractStrongCounter
All Implemented Interfaces:
StrongCounter, CounterEventGenerator, InternalCounterAdmin
Direct Known Subclasses:
BoundedStrongCounter, UnboundedStrongCounter

public abstract class AbstractStrongCounter extends Object implements StrongCounter, CounterEventGenerator, InternalCounterAdmin
A base strong consistent counter implementation.

Implementation: The value is stored in a single key and it uses the Infinispan's concurrency control and distribution to apply the write and reads. It uses the functional API.

Writes: The writes are performed by the functional API in order. The single key approach allows us to provide atomic properties for the counter value.

Reads: The reads read the value from the cache and it can go remotely.

Weak Reads: This implementation supports weak cached reads. It uses clustered listeners to receive the notifications of the actual value to store it locally.

Since:
9.0
Author:
Pedro Ruivo