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(org.wildfly.clustering.marshalling.ByteBufferMarshaller marshaller, Object id, org.wildfly.clustering.marshalling.MarshalledValueFactory<MC> factory) -
Method Summary
Modifier and TypeMethodDescription<R,E extends Exception>
ByteBufferMarshals the specified command to a byte[].
-
Constructor Details
-
CommandDispatcherMarshaller
-
-
Method Details
-
marshal
public <R,E extends Exception> ByteBuffer marshal(org.wildfly.clustering.server.dispatcher.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.
-