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