public class ReplicableCommandExternalizer extends org.infinispan.commons.marshall.AbstractExternalizer<ReplicableCommand>
Constructor and Description |
---|
ReplicableCommandExternalizer(RemoteCommandsFactory cmdFactory,
GlobalComponentRegistry globalComponentRegistry) |
Modifier and Type | Method and Description |
---|---|
protected CacheRpcCommand |
fromStream(byte id,
Object[] parameters,
byte type,
String cacheName) |
Integer |
getId() |
Set<Class<? extends ReplicableCommand>> |
getTypeClasses() |
protected ReplicableCommand |
readCommandHeader(ObjectInput input) |
protected Object[] |
readLegacyParameters(ObjectInput input) |
ReplicableCommand |
readObject(ObjectInput input) |
protected void |
writeCommandHeader(ObjectOutput output,
ReplicableCommand command) |
protected void |
writeCommandParameters(ObjectOutput output,
ReplicableCommand command) |
void |
writeObject(ObjectOutput output,
ReplicableCommand command) |
public ReplicableCommandExternalizer(RemoteCommandsFactory cmdFactory, GlobalComponentRegistry globalComponentRegistry)
public void writeObject(ObjectOutput output, ReplicableCommand command) throws IOException
IOException
protected void writeCommandParameters(ObjectOutput output, ReplicableCommand command) throws IOException
IOException
protected void writeCommandHeader(ObjectOutput output, ReplicableCommand command) throws IOException
IOException
public ReplicableCommand readObject(ObjectInput input) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected ReplicableCommand readCommandHeader(ObjectInput input) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected Object[] readLegacyParameters(ObjectInput input) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected CacheRpcCommand fromStream(byte id, Object[] parameters, byte type, String cacheName)
public Integer getId()
getId
in interface org.infinispan.commons.marshall.AdvancedExternalizer<ReplicableCommand>
getId
in class org.infinispan.commons.marshall.AbstractExternalizer<ReplicableCommand>
public Set<Class<? extends ReplicableCommand>> getTypeClasses()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.