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
Creates
WeakCounter stored in a Cache.- Since:
- 14.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWeakCounter(String name, org.infinispan.counter.api.CounterConfiguration configuration) Creates aWeakCounter.removeWeakCounter(String name, org.infinispan.counter.api.CounterConfiguration configuration) Removes theWeakCounterstate.Methods inherited from class org.infinispan.counter.impl.factory.CacheBaseCounterFactory
cache
-
Constructor Details
-
CacheBasedWeakCounterFactory
public CacheBasedWeakCounterFactory()
-
-
Method Details
-
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.
-