Class FileStreamSource

java.lang.Object
org.opendaylight.raft.spi.AbstractFileStreamSource
org.opendaylight.raft.spi.FileStreamSource
All Implemented Interfaces:
SizedStreamSource, StreamSource

@NonNullByDefault public final class FileStreamSource extends AbstractFileStreamSource
An AbstractFileStreamSource backed by an explicitly-managed file.
  • Constructor Details

    • FileStreamSource

      public FileStreamSource(Path file, long position, long limit)
      Default constructor.
      Parameters:
      file - backing file
      position - position of first byte
      limit - position of next-to-last byte
  • Method Details