Interface StateSnapshot.Writer<T extends StateSnapshot>

Enclosing interface:
StateSnapshot
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface StateSnapshot.Writer<T extends StateSnapshot>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    writeSnapshot(T snapshot, OutputStream out)
    Serialize a snapshot into an OutputStream.
  • Method Details

    • writeSnapshot

      void writeSnapshot(T snapshot, OutputStream out) throws IOException
      Serialize a snapshot into an OutputStream. Implementations are required to emit at least one byte.
      Parameters:
      snapshot - snapshot to serialize
      out - the OutputStream
      Throws:
      IOException - if an I/O error occurs