Package org.infinispan.counter.impl
Class SyncWeakCounterAdapter
- java.lang.Object
-
- org.infinispan.counter.impl.SyncWeakCounterAdapter
-
- All Implemented Interfaces:
SyncWeakCounter
- Direct Known Subclasses:
SyncWeakCounter
public class SyncWeakCounterAdapter extends Object implements SyncWeakCounter
AWeakCounterdecorator that waits for the operation to complete.- Since:
- 9.2
- Author:
- Pedro Ruivo
- See Also:
WeakCounter
-
-
Constructor Summary
Constructors Constructor Description SyncWeakCounterAdapter(WeakCounter counter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long delta)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.SyncWeakCounter
decrement, increment
-
-
-
-
Constructor Detail
-
SyncWeakCounterAdapter
public SyncWeakCounterAdapter(WeakCounter counter)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceSyncWeakCounter- See Also:
WeakCounter.getName()
-
getValue
public long getValue()
- Specified by:
getValuein interfaceSyncWeakCounter- See Also:
WeakCounter.getValue()
-
add
public void add(long delta)
- Specified by:
addin interfaceSyncWeakCounter- See Also:
WeakCounter.add(long)
-
reset
public void reset()
- Specified by:
resetin interfaceSyncWeakCounter- See Also:
WeakCounter.reset()
-
getConfiguration
public CounterConfiguration getConfiguration()
- Specified by:
getConfigurationin interfaceSyncWeakCounter- See Also:
WeakCounter.getConfiguration()
-
remove
public void remove()
- Specified by:
removein interfaceSyncWeakCounter- See Also:
WeakCounter.remove()
-
-