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
AWeakCounter
decorator 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 void
add(long delta)
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.SyncWeakCounter
decrement, increment
-
-
-
-
Constructor Detail
-
SyncWeakCounterAdapter
public SyncWeakCounterAdapter(WeakCounter counter)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceSyncWeakCounter
- See Also:
WeakCounter.getName()
-
getValue
public long getValue()
- Specified by:
getValue
in interfaceSyncWeakCounter
- See Also:
WeakCounter.getValue()
-
add
public void add(long delta)
- Specified by:
add
in interfaceSyncWeakCounter
- See Also:
WeakCounter.add(long)
-
reset
public void reset()
- Specified by:
reset
in interfaceSyncWeakCounter
- See Also:
WeakCounter.reset()
-
getConfiguration
public CounterConfiguration getConfiguration()
- Specified by:
getConfiguration
in interfaceSyncWeakCounter
- See Also:
WeakCounter.getConfiguration()
-
remove
public void remove()
- Specified by:
remove
in interfaceSyncWeakCounter
- See Also:
WeakCounter.remove()
-
-