Package org.infinispan.marshall.exts
Class ReplicableCommandExternalizer
- java.lang.Object
-
- org.infinispan.commons.marshall.AbstractExternalizer<ReplicableCommand>
-
- org.infinispan.marshall.exts.ReplicableCommandExternalizer
-
- All Implemented Interfaces:
Serializable
,org.infinispan.commons.marshall.AdvancedExternalizer<ReplicableCommand>
,org.infinispan.commons.marshall.Externalizer<ReplicableCommand>
public class ReplicableCommandExternalizer extends org.infinispan.commons.marshall.AbstractExternalizer<ReplicableCommand>
ReplicableCommandExternalizer.- Since:
- 4.0
- Author:
- Galder ZamarreƱo
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReplicableCommandExternalizer(RemoteCommandsFactory cmdFactory, GlobalComponentRegistry globalComponentRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CacheRpcCommand
fromStream(byte id, byte type, ByteString cacheName)
Integer
getId()
Set<Class<? extends ReplicableCommand>>
getTypeClasses()
ReplicableCommand
readObject(ObjectInput input)
protected void
writeCommandHeader(ObjectOutput output, ReplicableCommand command)
protected void
writeCommandParameters(ObjectOutput output, ReplicableCommand command)
void
writeObject(ObjectOutput output, ReplicableCommand command)
-
-
-
Constructor Detail
-
ReplicableCommandExternalizer
public ReplicableCommandExternalizer(RemoteCommandsFactory cmdFactory, GlobalComponentRegistry globalComponentRegistry)
-
-
Method Detail
-
writeObject
public void writeObject(ObjectOutput output, ReplicableCommand command) throws IOException
- Throws:
IOException
-
writeCommandParameters
protected void writeCommandParameters(ObjectOutput output, ReplicableCommand command) throws IOException
- Throws:
IOException
-
writeCommandHeader
protected void writeCommandHeader(ObjectOutput output, ReplicableCommand command) throws IOException
- Throws:
IOException
-
readObject
public ReplicableCommand readObject(ObjectInput input) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
fromStream
protected CacheRpcCommand fromStream(byte id, byte type, ByteString cacheName)
-
getId
public Integer getId()
- Specified by:
getId
in interfaceorg.infinispan.commons.marshall.AdvancedExternalizer<ReplicableCommand>
- Overrides:
getId
in classorg.infinispan.commons.marshall.AbstractExternalizer<ReplicableCommand>
-
getTypeClasses
public Set<Class<? extends ReplicableCommand>> getTypeClasses()
-
-