Package org.infinispan.counter.api
Interface SyncStrongCounter
- All Known Implementing Classes:
SyncStrongCounterAdapter
public interface SyncStrongCounter
A synchronous
StrongCounter
.- Since:
- 9.2
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptionlong
addAndGet
(long delta) default boolean
compareAndSet
(long expect, long update) long
compareAndSwap
(long expect, long update) default long
long
getAndSet
(long value) getName()
long
getValue()
default long
void
remove()
void
reset()
-
Method Details
-
incrementAndGet
default long incrementAndGet()- See Also:
-
decrementAndGet
default long decrementAndGet()- See Also:
-
addAndGet
long addAndGet(long delta) - See Also:
-
reset
void reset()- See Also:
-
getValue
long getValue()- See Also:
-
compareAndSet
default boolean compareAndSet(long expect, long update) - See Also:
-
compareAndSwap
long compareAndSwap(long expect, long update) - See Also:
-
getAndSet
long getAndSet(long value) - See Also:
-
getName
String getName()- See Also:
-
getConfiguration
CounterConfiguration getConfiguration()- See Also:
-
remove
void remove()- See Also:
-