Package org.infinispan.counter.api
Interface SyncStrongCounter
-
public interface SyncStrongCounter
A synchronousStrongCounter
.- Since:
- 9.2
- Author:
- Pedro Ruivo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description long
addAndGet(long delta)
default boolean
compareAndSet(long expect, long update)
long
compareAndSwap(long expect, long update)
default long
decrementAndGet()
CounterConfiguration
getConfiguration()
String
getName()
long
getValue()
default long
incrementAndGet()
void
remove()
void
reset()
-
-
-
Method Detail
-
incrementAndGet
default long incrementAndGet()
- See Also:
StrongCounter.incrementAndGet()
-
decrementAndGet
default long decrementAndGet()
- See Also:
StrongCounter.decrementAndGet()
-
addAndGet
long addAndGet(long delta)
- See Also:
StrongCounter.addAndGet(long)
-
reset
void reset()
- See Also:
StrongCounter.reset()
-
getValue
long getValue()
- See Also:
StrongCounter.decrementAndGet()
-
compareAndSet
default boolean compareAndSet(long expect, long update)
- See Also:
StrongCounter.compareAndSet(long, long)
-
compareAndSwap
long compareAndSwap(long expect, long update)
- See Also:
StrongCounter.compareAndSwap(long, long)
-
getName
String getName()
- See Also:
StrongCounter.getName()
-
getConfiguration
CounterConfiguration getConfiguration()
- See Also:
StrongCounter.getConfiguration()
-
remove
void remove()
- See Also:
StrongCounter.remove()
-
-