Package org.infinispan.counter.impl
Class SyncStrongCounterAdapter
- java.lang.Object
-
- org.infinispan.counter.impl.SyncStrongCounterAdapter
-
- All Implemented Interfaces:
SyncStrongCounter
- Direct Known Subclasses:
SyncStrongCounter
public class SyncStrongCounterAdapter extends Object implements SyncStrongCounter
AStrongCounterdecorator that waits for the operation to complete.- Since:
- 9.2
- Author:
- Pedro Ruivo
- See Also:
StrongCounter
-
-
Constructor Summary
Constructors Constructor Description SyncStrongCounterAdapter(StrongCounter counter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longaddAndGet(long delta)longcompareAndSwap(long expect, long update)CounterConfigurationgetConfiguration()StringgetName()longgetValue()voidremove()voidreset()StringtoString()-
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 Detail
-
SyncStrongCounterAdapter
public SyncStrongCounterAdapter(StrongCounter counter)
-
-
Method Detail
-
addAndGet
public long addAndGet(long delta)
- Specified by:
addAndGetin interfaceSyncStrongCounter- See Also:
StrongCounter.addAndGet(long)
-
reset
public void reset()
- Specified by:
resetin interfaceSyncStrongCounter- See Also:
StrongCounter.reset()
-
getValue
public long getValue()
- Specified by:
getValuein interfaceSyncStrongCounter- See Also:
StrongCounter.decrementAndGet()
-
compareAndSwap
public long compareAndSwap(long expect, long update)- Specified by:
compareAndSwapin interfaceSyncStrongCounter- See Also:
StrongCounter.compareAndSwap(long, long)
-
getName
public String getName()
- Specified by:
getNamein interfaceSyncStrongCounter- See Also:
StrongCounter.getName()
-
getConfiguration
public CounterConfiguration getConfiguration()
- Specified by:
getConfigurationin interfaceSyncStrongCounter- See Also:
StrongCounter.getConfiguration()
-
remove
public void remove()
- Specified by:
removein interfaceSyncStrongCounter- See Also:
StrongCounter.remove()
-
-