Class CommandDispatcherMarshaller<C,MC>

java.lang.Object
org.wildfly.clustering.server.jgroups.dispatcher.CommandDispatcherMarshaller<C,MC>
Type Parameters:
C - the command execution context
MC - the marshalling context
All Implemented Interfaces:
CommandMarshaller<C>

public class CommandDispatcherMarshaller<C,MC> extends Object implements CommandMarshaller<C>
Marshaller for commands.
Author:
Paul Ferraro
  • Constructor Details

    • CommandDispatcherMarshaller

      public CommandDispatcherMarshaller(org.wildfly.clustering.marshalling.ByteBufferMarshaller marshaller, Object id, org.wildfly.clustering.marshalling.MarshalledValueFactory<MC> factory)
  • Method Details

    • marshal

      public <R, E extends Exception> ByteBuffer marshal(org.wildfly.clustering.server.dispatcher.Command<R, ? super C, E> command) throws IOException
      Description copied from interface: CommandMarshaller
      Marshals the specified command to a byte[].
      Specified by:
      marshal in interface CommandMarshaller<C>
      Parameters:
      command - a command
      Returns:
      a serialized command.
      Throws:
      IOException - if marshalling fails.