Interface CounterManager

  • All Known Implementing Classes:
    CounterManagerImpl

    public interface CounterManager
    A Counter Manager that accepts a config to create counters. Creates counter's based on CounterConfig. This manages the lifecycle of a counter
    Since:
    1.8
    Author:
    Abhishek Sanoujam
    • Method Detail

      • createCounter

        Counter createCounter​(CounterConfig config)
        Creates a Counter based on tha passed config
        Parameters:
        config -
        Returns:
        The counter created and managed by this CounterManager
      • shutdown

        void shutdown​(boolean killTimer)
        Shuts down this counter manager
      • shutdownCounter

        void shutdownCounter​(Counter counter)
        Shuts down the counter
        Parameters:
        counter -