Interface CommandMarshaller<C>

Type Parameters:
C - command execution context
All Known Implementing Classes:
CommandDispatcherMarshaller

public interface CommandMarshaller<C>
Marshalling strategy for a command.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    <R, E extends Exception>
    ByteBuffer
    marshal(Command<R, ? super C, E> command)
    Marshals the specified command to a byte[].
  • Method Details

    • marshal

      <R, E extends Exception> ByteBuffer marshal(Command<R, ? super C, E> command) throws IOException
      Marshals the specified command to a byte[].
      Type Parameters:
      R - the command return type
      E - the command execution exception type
      Parameters:
      command - a command
      Returns:
      a serialized command.
      Throws:
      IOException - if marshalling fails.