public class SwapPacketStreamSerializer<T extends ISwapExternalizable> extends Object implements IPacketStreamSerializer<T>
ISwapExternalizable
Constructor and Description |
---|
SwapPacketStreamSerializer() |
Modifier and Type | Method and Description |
---|---|
T |
readPacketFromStream(ObjectInput input)
Reads a packet from the given input stream
|
void |
writePacketToStream(ObjectOutput output,
T packet)
Writes the given packet to the output stream
|
public void writePacketToStream(ObjectOutput output, T packet) throws IOException
IPacketStreamSerializer
writePacketToStream
in interface IPacketStreamSerializer<T extends ISwapExternalizable>
IOException
public T readPacketFromStream(ObjectInput input) throws IOException, ClassNotFoundException
IPacketStreamSerializer
readPacketFromStream
in interface IPacketStreamSerializer<T extends ISwapExternalizable>
IOException
ClassNotFoundException
Copyright © GigaSpaces.