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 unboundedStrongCounterstored in aCache.- Since:
- 14.0
-
-
Constructor Summary
Constructors Constructor Description CacheBasedStrongCounterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<InternalCounterAdmin>createStrongCounter(String name, org.infinispan.counter.api.CounterConfiguration configuration)Creates a (un)boundedStrongCounter.CompletionStage<Void>removeStrongCounter(String name)Removes theStrongCounterstate.-
Methods inherited from class org.infinispan.counter.impl.factory.CacheBaseCounterFactory
cache
-
-
-
-
Method Detail
-
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
public CompletionStage<Void> removeStrongCounter(String name)
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.
-
-