Interface SnapshotFile
- All Superinterfaces:
 InstallableSnapshot
Access to the contents of a RAFT snapshot file.
- 
Method Summary
Modifier and TypeMethodDescriptionpath()Returns this file'sPath.readRaftSnapshot(RestrictedObjectStreams objectStreams) Returns theRaftSnapshotstored in this file.default <T extends StateSnapshot>
@Nullable TreadSnapshot(StateSnapshot.Reader<? extends T> reader) Returns the instant this file was written.Methods inherited from interface org.opendaylight.raft.spi.InstallableSnapshot
lastIncluded, source 
- 
Method Details
- 
timestamp
Instant timestamp()Returns the instant this file was written.- Returns:
 - the instant this file was written
 
 - 
path
Path path()Returns this file'sPath.- Returns:
 - this file's 
Path 
 - 
readRaftSnapshot
Returns theRaftSnapshotstored in this file.- Parameters:
 objectStreams- theRestrictedObjectStreamscontext- Returns:
 - the 
RaftSnapshot - Throws:
 IOException- if an I/O error occurs
 - 
readSnapshot
default <T extends StateSnapshot> @Nullable T readSnapshot(StateSnapshot.Reader<? extends T> reader) throws IOException - Throws:
 IOException
 
 -