public class CommandDispatcherMarshaller<C,MC> extends Object implements CommandMarshaller<C>
| Constructor and Description |
|---|
CommandDispatcherMarshaller(MarshallingContext context,
Object id,
org.wildfly.clustering.marshalling.spi.MarshalledValueFactory<MC> factory) |
| Modifier and Type | Method and Description |
|---|---|
<R> ByteBuffer |
marshal(Command<R,? super C> command)
Marshals the specified command to a byte[].
|
public CommandDispatcherMarshaller(MarshallingContext context, Object id, org.wildfly.clustering.marshalling.spi.MarshalledValueFactory<MC> factory)
public <R> ByteBuffer marshal(Command<R,? super C> command) throws IOException
CommandMarshallermarshal in interface CommandMarshaller<C>command - a commandIOException - if marshalling fails.Copyright © 2020 JBoss by Red Hat. All rights reserved.