Class CounterConfig

    • Constructor Summary

      Constructors 
      Constructor Description
      CounterConfig​(long initialValue)
      Creates a config with the initial value
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Counter createCounter()
      Creates and returns a Counter based on the initial value
      long getInitialValue()
      Gets the initial value
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CounterConfig

        public CounterConfig​(long initialValue)
        Creates a config with the initial value
        Parameters:
        initialValue -
    • Method Detail

      • getInitialValue

        public final long getInitialValue()
        Gets the initial value
        Returns:
        the initial value of counters created by this config
      • createCounter

        public Counter createCounter()
        Creates and returns a Counter based on the initial value
        Returns:
        The counter created by this config