Package org.opendaylight.raft.spi
Class TransientFileStreamSource
java.lang.Object
org.opendaylight.raft.spi.AbstractFileStreamSource
org.opendaylight.raft.spi.TransientFileStreamSource
- All Implemented Interfaces:
SizedStreamSource
,StreamSource
An
AbstractFileStreamSource
backed by a TransientFile
.-
Constructor Summary
ConstructorsConstructorDescriptionTransientFileStreamSource
(TransientFile file, long position, long limit) Default constructor. -
Method Summary
Methods inherited from class org.opendaylight.raft.spi.AbstractFileStreamSource
limit, openBufferedStream, openStream, position, size, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opendaylight.raft.spi.SizedStreamSource
toSizedStreamSource
Methods inherited from interface org.opendaylight.raft.spi.StreamSource
openDataInput
-
Constructor Details
-
TransientFileStreamSource
Default constructor.- Parameters:
file
- backing fileposition
- position of first bytelimit
- position of next-to-last byte
-
-
Method Details
-
file
Description copied from class:AbstractFileStreamSource
Returns this source's file path.- Specified by:
file
in classAbstractFileStreamSource
- Returns:
- this source's file path
-