Interface StrongCounterFactory
- All Known Implementing Classes:
CacheBasedStrongCounterFactory
public interface StrongCounterFactory
Factory to create and remove bounded and unbounded
StrongCounter.- Since:
- 14.0
-
Method Summary
Modifier and TypeMethodDescriptioncreateStrongCounter(String counterName, org.infinispan.counter.api.CounterConfiguration configuration) Creates a (un)boundedStrongCounter.removeStrongCounter(String counterName) Removes theStrongCounterstate.
-
Method Details
-
removeStrongCounter
Removes theStrongCounterstate.- Parameters:
counterName- The counter's name.- Returns:
- A
CompletionStagethat is completed after the counter is removed.
-
createStrongCounter
CompletionStage<InternalCounterAdmin> createStrongCounter(String counterName, org.infinispan.counter.api.CounterConfiguration configuration) Creates a (un)boundedStrongCounter.- Parameters:
counterName- The counter's name.configuration- The counter's configuration.- Returns:
- A
CompletionStagethat is completed after the counter is created.
-