Interface ProtocolMessageMarshaller<T>

Type Parameters:
T - The type of protocol message.

public interface ProtocolMessageMarshaller<T>
Defines a marshaller for serializing protocol messages.
  • Method Summary

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

    • marshal

      void marshal(T msg, OutputStream os) throws IOException
      Serializes the given message to the given output stream.
      Parameters:
      msg - a message
      os - an output stream
      Throws:
      IOException - if the message could not be serialized to the stream