Interface StrongCounterFactory

  • All Known Implementing Classes:
    CacheBasedStrongCounterFactory

    public interface StrongCounterFactory
    Factory to create and remove bounded and unbounded StrongCounter.
    Since:
    14.0
    • Method Detail

      • removeStrongCounter

        CompletionStage<Void> removeStrongCounter​(String counterName)
        Removes the StrongCounter state.
        Parameters:
        counterName - The counter's name.
        Returns:
        A CompletionStage that is completed after the counter is removed.
      • createStrongCounter

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