Interface Counter

    • Method Detail

      • setValue

        long setValue​(long value)
        Sets the given value of the Counter.
        Parameters:
        value - Value to be assigned to the Counter.
        Returns:
        Current value of the Counter.
      • getValue

        long getValue()
        Gets the value of Counter.
        Returns:
        Current value of the Counter.
      • increment

        long increment()
        Increment the value of Distributed Counter by one.
        Returns:
        Current value of the Counter.
      • decrement

        long decrement()
        Decrement the value of Distributed Counter by one.
        Returns:
        Current value of the Counter.
      • incrementBy

        long incrementBy​(long value)
        Increment the value of Distributed Counter by the amount specified.
        Parameters:
        value - The value to increment by.
        Returns:
        Current value of the Counter.
      • decrementBy

        long decrementBy​(long value)
        Decrement the value of Distributed Counter by the amount specified.
        Parameters:
        value - The value to decrement by.
        Returns:
        Current value of the Counter.