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
AStrongCounter
decorator 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 long
addAndGet(long delta)
long
compareAndSwap(long expect, long update)
CounterConfiguration
getConfiguration()
String
getName()
long
getValue()
void
remove()
void
reset()
String
toString()
-
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:
addAndGet
in interfaceSyncStrongCounter
- See Also:
StrongCounter.addAndGet(long)
-
reset
public void reset()
- Specified by:
reset
in interfaceSyncStrongCounter
- See Also:
StrongCounter.reset()
-
getValue
public long getValue()
- Specified by:
getValue
in interfaceSyncStrongCounter
- See Also:
StrongCounter.decrementAndGet()
-
compareAndSwap
public long compareAndSwap(long expect, long update)
- Specified by:
compareAndSwap
in interfaceSyncStrongCounter
- See Also:
StrongCounter.compareAndSwap(long, long)
-
getName
public String getName()
- Specified by:
getName
in interfaceSyncStrongCounter
- See Also:
StrongCounter.getName()
-
getConfiguration
public CounterConfiguration getConfiguration()
- Specified by:
getConfiguration
in interfaceSyncStrongCounter
- See Also:
StrongCounter.getConfiguration()
-
remove
public void remove()
- Specified by:
remove
in interfaceSyncStrongCounter
- See Also:
StrongCounter.remove()
-
-