Class CommandDispatcherMarshaller<C,MC>
- java.lang.Object
-
- org.wildfly.clustering.server.infinispan.dispatcher.CommandDispatcherMarshaller<C,MC>
-
- All Implemented Interfaces:
CommandMarshaller<C>
public class CommandDispatcherMarshaller<C,MC> extends Object implements CommandMarshaller<C>
- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description CommandDispatcherMarshaller(ByteBufferMarshaller marshaller, Object id, MarshalledValueFactory<MC> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> ByteBuffermarshal(Command<R,? super C> command)Marshals the specified command to a byte[].
-
-
-
Constructor Detail
-
CommandDispatcherMarshaller
public CommandDispatcherMarshaller(ByteBufferMarshaller marshaller, Object id, MarshalledValueFactory<MC> factory)
-
-
Method Detail
-
marshal
public <R> ByteBuffer marshal(Command<R,? super C> command) throws IOException
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.
-
-