Class CommandDispatcherMarshaller<C,MC>
java.lang.Object
org.wildfly.clustering.server.jgroups.dispatcher.CommandDispatcherMarshaller<C,MC>
- Type Parameters:
C- the command execution contextMC- the marshalling context
- All Implemented Interfaces:
CommandMarshaller<C>
Marshaller for commands.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCommandDispatcherMarshaller(ByteBufferMarshaller marshaller, Object id, MarshalledValueFactory<MC> factory) -
Method Summary
Modifier and TypeMethodDescription<R,E extends Exception>
ByteBufferMarshals the specified command to a byte[].
-
Constructor Details
-
CommandDispatcherMarshaller
public CommandDispatcherMarshaller(ByteBufferMarshaller marshaller, Object id, MarshalledValueFactory<MC> factory)
-
-
Method Details
-
marshal
public <R,E extends Exception> ByteBuffer marshal(Command<R, ? super C, throws IOExceptionE> command) Description copied from interface:CommandMarshallerMarshals the specified command to a byte[].- Specified by:
marshalin interfaceCommandMarshaller<C>- Parameters:
command- a command- Returns:
- a serialized command.
- Throws:
IOException- if marshalling fails.
-