Class ReadablePosition

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Direct Known Subclasses:
    Position

    public abstract class ReadablePosition
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Indicates how far through an abstract task a component has progressed as a counter value.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract void close()
      abstract long getVolatile()
      Get the current position of a component with volatile semantics.
      abstract int id()
      Identifier for this position.
      • Methods inherited from class java.lang.Object

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

      • ReadablePosition

        public ReadablePosition()
    • Method Detail

      • 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 java.lang.AutoCloseable