Interface WeakCounterFactory
-
- All Known Implementing Classes:
CacheBasedWeakCounterFactory
public interface WeakCounterFactoryFactory to create and removeWeakCounter.- Since:
- 14.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletionStage<InternalCounterAdmin>createWeakCounter(String counterName, org.infinispan.counter.api.CounterConfiguration configuration)Creates aWeakCounter.CompletionStage<Void>removeWeakCounter(String counterName, org.infinispan.counter.api.CounterConfiguration configuration)Removes theWeakCounterstate.
-
-
-
Method Detail
-
removeWeakCounter
CompletionStage<Void> removeWeakCounter(String counterName, org.infinispan.counter.api.CounterConfiguration configuration)
Removes theWeakCounterstate.- Parameters:
counterName- The counter's name.- Returns:
- A
CompletionStagethat is completed after the counter is removed.
-
createWeakCounter
CompletionStage<InternalCounterAdmin> createWeakCounter(String counterName, org.infinispan.counter.api.CounterConfiguration configuration)
Creates aWeakCounter.- Parameters:
counterName- The counter's name.configuration- The counter's configuration.- Returns:
- A
CompletionStagethat is completed after the counter is created.
-
-