Class StatusIndicatorReader

java.lang.Object
org.agrona.concurrent.status.StatusIndicatorReader
Direct Known Subclasses:
StatusIndicator

public abstract class StatusIndicatorReader extends Object
Reads the value of a counter to indicate current status and what abstraction should be taken.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract long
    Get the current status indication of a component with acquire semantics.
    abstract long
    Get the current status indication of a component with opaque semantics.
    abstract long
    Get the current status indication of a component with volatile semantics.
    abstract int
    id()
    Identifier for this status indicator.

    Methods inherited from class java.lang.Object

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

    • StatusIndicatorReader

      public StatusIndicatorReader()
      Default constructor.
  • Method Details

    • id

      public abstract int id()
      Identifier for this status indicator.
      Returns:
      the identifier for this status indicator.
    • getVolatile

      public abstract long getVolatile()
      Get the current status indication of a component with volatile semantics.
      Returns:
      the current status indication of a component.
    • getAcquire

      public abstract long getAcquire()
      Get the current status indication of a component with acquire semantics.
      Returns:
      the current status indication of a component.
    • getOpaque

      public abstract long getOpaque()
      Get the current status indication of a component with opaque semantics.
      Returns:
      the current status indication of a component.