Package org.opendaylight.raft.spi
Class SnapshotSource
java.lang.Object
org.opendaylight.raft.spi.SnapshotSource
- Direct Known Subclasses:
 Lz4SnapshotSource,PlainSnapshotSource
@NonNullByDefault
public abstract sealed class SnapshotSource
extends Object
permits PlainSnapshotSource, Lz4SnapshotSource
A source of bytes comprising the contents of a snapshot. It may or may not directly correspond to the serialization
 format of a snapshot.
- 
Method Summary
Modifier and TypeMethodDescriptionfinal StreamSourceio()Returns theStreamSourcebacking thisSnapshotSource.abstract PlainSnapshotSourceReturns the equivalent of this source as a PlainSnapshotSource.final StringtoString() 
- 
Method Details
- 
toPlainSource
Returns the equivalent of this source as a PlainSnapshotSource.- Returns:
 - the equivalent of this source as a PlainSnapshotSource
 
 - 
io
Returns theStreamSourcebacking thisSnapshotSource.- Returns:
 - the 
StreamSourcebacking thisSnapshotSource. 
 - 
toString
 
 -