Interface StrongCounterFactory
-
- All Known Implementing Classes:
CacheBasedStrongCounterFactory
public interface StrongCounterFactoryFactory to create and remove bounded and unboundedStrongCounter.- Since:
- 14.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletionStage<InternalCounterAdmin>createStrongCounter(String counterName, org.infinispan.counter.api.CounterConfiguration configuration)Creates a (un)boundedStrongCounter.CompletionStage<Void>removeStrongCounter(String counterName)Removes theStrongCounterstate.
-
-
-
Method Detail
-
removeStrongCounter
CompletionStage<Void> removeStrongCounter(String counterName)
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.
-
-