Class CommandDispatcherMarshaller<C,​MC>

    • Constructor Detail

      • CommandDispatcherMarshaller

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

      • marshal

        public <R> ByteBuffer marshal​(org.wildfly.clustering.dispatcher.Command<R,​? super C> 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.