Class CacheBasedWeakCounterFactory
- java.lang.Object
-
- org.infinispan.counter.impl.factory.CacheBaseCounterFactory<WeakCounterKey>
-
- org.infinispan.counter.impl.factory.CacheBasedWeakCounterFactory
-
- All Implemented Interfaces:
WeakCounterFactory
public class CacheBasedWeakCounterFactory extends CacheBaseCounterFactory<WeakCounterKey> implements WeakCounterFactory
CreatesWeakCounterstored in aCache.- Since:
- 14.0
-
-
Constructor Summary
Constructors Constructor Description CacheBasedWeakCounterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<InternalCounterAdmin>createWeakCounter(String name, org.infinispan.counter.api.CounterConfiguration configuration)Creates aWeakCounter.CompletionStage<Void>removeWeakCounter(String name, org.infinispan.counter.api.CounterConfiguration configuration)Removes theWeakCounterstate.-
Methods inherited from class org.infinispan.counter.impl.factory.CacheBaseCounterFactory
cache
-
-
-
-
Method Detail
-
createWeakCounter
public CompletionStage<InternalCounterAdmin> createWeakCounter(String name, org.infinispan.counter.api.CounterConfiguration configuration)
Description copied from interface:WeakCounterFactoryCreates aWeakCounter.- Specified by:
createWeakCounterin interfaceWeakCounterFactory- Parameters:
name- The counter's name.configuration- The counter's configuration.- Returns:
- A
CompletionStagethat is completed after the counter is created.
-
removeWeakCounter
public CompletionStage<Void> removeWeakCounter(String name, org.infinispan.counter.api.CounterConfiguration configuration)
Description copied from interface:WeakCounterFactoryRemoves theWeakCounterstate.- Specified by:
removeWeakCounterin interfaceWeakCounterFactory- Parameters:
name- The counter's name.- Returns:
- A
CompletionStagethat is completed after the counter is removed.
-
-