Package org.infinispan.counter.impl
Class SyncStrongCounterAdapter
java.lang.Object
org.infinispan.counter.impl.SyncStrongCounterAdapter
- All Implemented Interfaces:
SyncStrongCounter
A
StrongCounter
decorator that waits for the operation to complete.- Since:
- 9.2
- Author:
- Pedro Ruivo
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.counter.api.SyncStrongCounter
compareAndSet, decrementAndGet, incrementAndGet
-
Constructor Details
-
SyncStrongCounterAdapter
-
-
Method Details
-
addAndGet
public long addAndGet(long delta) - Specified by:
addAndGet
in interfaceSyncStrongCounter
- See Also:
-
reset
public void reset()- Specified by:
reset
in interfaceSyncStrongCounter
- See Also:
-
getValue
public long getValue()- Specified by:
getValue
in interfaceSyncStrongCounter
- See Also:
-
compareAndSwap
public long compareAndSwap(long expect, long update) - Specified by:
compareAndSwap
in interfaceSyncStrongCounter
- See Also:
-
getName
- Specified by:
getName
in interfaceSyncStrongCounter
- See Also:
-
getConfiguration
- Specified by:
getConfiguration
in interfaceSyncStrongCounter
- See Also:
-
remove
public void remove()- Specified by:
remove
in interfaceSyncStrongCounter
- See Also:
-
getAndSet
public long getAndSet(long value) - Specified by:
getAndSet
in interfaceSyncStrongCounter
- See Also:
-
toString
-