Interface ThreadData.SharedCounter

  • Enclosing interface:
    ThreadData

    public static interface ThreadData.SharedCounter
    Counter shared by multiple sessions.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long apply​(java.util.function.LongBinaryOperator operator, long value)  
      long get()  
      long set​(long value)  
    • Method Detail

      • get

        long get()
        Returns:
        Current value.
      • set

        long set​(long value)
        Parameters:
        value - Number.
        Returns:
        Previous value.
      • apply

        long apply​(java.util.function.LongBinaryOperator operator,
                   long value)
        Parameters:
        value - Number.
        Returns:
        Sum of previous value and the parameter.