Class StateSnapshot.ToStorage<T extends StateSnapshot>
java.lang.Object
org.opendaylight.controller.cluster.raft.spi.StateSnapshot.ToStorage<T>
- Type Parameters:
T
- the type ofStateSnapshot
- Enclosing interface:
StateSnapshot
A
StateSnapshot
on its way to storage.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends StateSnapshot>
StateSnapshot.ToStorage<T> of
(StateSnapshot.Writer<T> writer, T snapshot) static <T extends StateSnapshot>
@Nullable StateSnapshot.ToStorage<T> ofNullable
(StateSnapshot.Writer<T> writer, @Nullable T snapshot) snapshot()
toString()
void
writeTo
(OutputStream out)
-
Method Details
-
of
public static <T extends StateSnapshot> StateSnapshot.ToStorage<T> of(StateSnapshot.Writer<T> writer, T snapshot) -
ofNullable
public static <T extends StateSnapshot> @Nullable StateSnapshot.ToStorage<T> ofNullable(StateSnapshot.Writer<T> writer, @Nullable T snapshot) -
writeTo
- Throws:
IOException
-
snapshot
-
toString
-