Module concord_core

Interface MessageWriter<T extends Message>

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 interface MessageWriter<T extends Message>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Writes this message to the given output stream.
  • Method Details

    • write

      void write(T msg, ChainedDataOutputStream out) throws IOException
      Writes this message to the given output stream.
      Parameters:
      msg - The message to write.
      out - The output stream to write to.
      Throws:
      IOException - If an error occurs while writing.