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 Detail

      • marshal

        <R> ByteBuffer marshal​(org.wildfly.clustering.dispatcher.Command<R,​? super C> command)
                        throws IOException
        Marshals the specified command to a byte[].
        Parameters:
        command - a command
        Returns:
        a serialized command.
        Throws:
        IOException - if marshalling fails.