Class CacheBasedStrongCounterFactory
java.lang.Object
org.infinispan.counter.impl.factory.CacheBaseCounterFactory<StrongCounterKey>
org.infinispan.counter.impl.factory.CacheBasedStrongCounterFactory
- All Implemented Interfaces:
StrongCounterFactory
public class CacheBasedStrongCounterFactory
extends CacheBaseCounterFactory<StrongCounterKey>
implements StrongCounterFactory
Created bounded and unbounded
StrongCounter stored in a Cache.- Since:
- 14.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateStrongCounter(String name, org.infinispan.counter.api.CounterConfiguration configuration) Creates a (un)boundedStrongCounter.removeStrongCounter(String name) Removes theStrongCounterstate.Methods inherited from class org.infinispan.counter.impl.factory.CacheBaseCounterFactory
cache
-
Constructor Details
-
CacheBasedStrongCounterFactory
public CacheBasedStrongCounterFactory()
-
-
Method Details
-
createStrongCounter
public CompletionStage<InternalCounterAdmin> createStrongCounter(String name, org.infinispan.counter.api.CounterConfiguration configuration) Description copied from interface:StrongCounterFactoryCreates a (un)boundedStrongCounter.- Specified by:
createStrongCounterin interfaceStrongCounterFactory- Parameters:
name- The counter's name.configuration- The counter's configuration.- Returns:
- A
CompletionStagethat is completed after the counter is created.
-
removeStrongCounter
Description copied from interface:StrongCounterFactoryRemoves theStrongCounterstate.- Specified by:
removeStrongCounterin interfaceStrongCounterFactory- Parameters:
name- The counter's name.- Returns:
- A
CompletionStagethat is completed after the counter is removed.
-