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