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 StreamSource
io()
Returns theStreamSource
backing thisSnapshotSource
.abstract PlainSnapshotSource
Returns the equivalent of this source as a PlainSnapshotSource.final String
toString()
-
Method Details
-
toPlainSource
Returns the equivalent of this source as a PlainSnapshotSource.- Returns:
- the equivalent of this source as a PlainSnapshotSource
-
io
Returns theStreamSource
backing thisSnapshotSource
.- Returns:
- the
StreamSource
backing thisSnapshotSource
.
-
toString
-