Interface Resumable<T>

  • Type Parameters:
    T - the type of the addressable value for the resumable object (for example, a file would use a Long value)

    public interface Resumable<T>
    This provides an interface for resumable objects. Such objects allow its users to address them at a specific offset. For example, when reading large files, it may be possible to inform the last offset that was read, thus allowing users of this interface to skip to that offset. This can potentially improve resumable operations by allowing reprocessing of data.
    • Method Detail

      • setLastOffset

        void setLastOffset​(T offset)
        Sets the last offset the last offset as appropriate for the user of the interface
        Parameters:
        offset - the offset value
      • getLastOffset

        T getLastOffset()
        Gets the last offset value
        Returns:
        the last offset value according to the interface and type implemented