Class JavaSerializer
java.lang.Object
se.sics.kompics.network.netty.serialization.JavaSerializer
- All Implemented Interfaces:
Serializer
public class JavaSerializer extends Object implements Serializer
- Author:
- Lars Kroll <[email protected]>
-
Constructor Summary
Constructors Constructor Description JavaSerializer(io.netty.handler.codec.serialization.ClassResolver resolver) -
Method Summary
Modifier and Type Method Description ObjectfromBinary(io.netty.buffer.ByteBuf buf, Optional<Object> hint)Deserialize from buf.intidentifier()voidtoBinary(Object o, io.netty.buffer.ByteBuf buf)Serialize o into buf.
-
Constructor Details
-
Method Details
-
identifier
- Specified by:
identifierin interfaceSerializer
-
toBinary
Description copied from interface:SerializerSerialize o into buf.- Specified by:
toBinaryin interfaceSerializer
-
fromBinary
Description copied from interface:SerializerDeserialize from buf. Optionally use hint to decide what to deserialize.- Specified by:
fromBinaryin interfaceSerializer- Returns:
-