Interface AtomicValue<T>


public interface AtomicValue<T>
Abstracts a value returned from one of the Atomics
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns debugging stats about the operation
    Returns the value of the counter after to the operation
    Returns the value of the counter prior to the operation
    boolean
    MUST be checked. Returns true if the operation succeeded.
  • Method Details

    • succeeded

      boolean succeeded()
      MUST be checked. Returns true if the operation succeeded. If false is returned, the operation failed and the atomic was not updated.
      Returns:
      true/false
    • preValue

      T preValue()
      Returns the value of the counter prior to the operation
      Returns:
      pre-operation value
    • postValue

      T postValue()
      Returns the value of the counter after to the operation
      Returns:
      post-operation value
    • getStats

      AtomicStats getStats()
      Returns debugging stats about the operation
      Returns:
      stats