Interface WeakCounterFactory

All Known Implementing Classes:
CacheBasedWeakCounterFactory

public interface WeakCounterFactory
Factory to create and remove WeakCounter.
Since:
14.0
  • Method Details

    • removeWeakCounter

      CompletionStage<Void> removeWeakCounter(String counterName, org.infinispan.counter.api.CounterConfiguration configuration)
      Removes the WeakCounter state.
      Parameters:
      counterName - The counter's name.
      Returns:
      A CompletionStage that is completed after the counter is removed.
    • createWeakCounter

      CompletionStage<InternalCounterAdmin> createWeakCounter(String counterName, org.infinispan.counter.api.CounterConfiguration configuration)
      Creates a WeakCounter.
      Parameters:
      counterName - The counter's name.
      configuration - The counter's configuration.
      Returns:
      A CompletionStage that is completed after the counter is created.