Class ReadablePosition

java.lang.Object
org.agrona.concurrent.status.ReadablePosition
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
Position

public abstract class ReadablePosition extends Object implements AutoCloseable
Indicates how far through an abstract task a component has progressed as a counter value.
  • Constructor Details

    • ReadablePosition

      public ReadablePosition()
  • Method Details

    • id

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

      public abstract long getVolatile()
      Get the current position of a component with volatile semantics.
      Returns:
      the current position of a component with volatile semantics.
    • close

      public abstract void close()
      Specified by:
      close in interface AutoCloseable