Class AckosMessageSerializer<T>
java.lang.Object
pt.unl.fct.di.novasys.channel.ackos.messaging.AckosMessageSerializer<T>
- All Implemented Interfaces:
ISerializer<AckosMessage<T>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(io.netty.buffer.ByteBuf in) Deserializes an object from a byte buffer and returns it.void
serialize
(AckosMessage<T> ackosMessage, io.netty.buffer.ByteBuf out) Serializes the received object into the received byte buffer.
-
Constructor Details
-
AckosMessageSerializer
-
-
Method Details
-
serialize
Description copied from interface:ISerializer
Serializes the received object into the received byte buffer.- Specified by:
serialize
in interfaceISerializer<T>
- Parameters:
ackosMessage
- The object to serializeout
- The byte buffer to which the object will the written- Throws:
IOException
- if the serialization fails
-
deserialize
Description copied from interface:ISerializer
Deserializes an object from a byte buffer and returns it.- Specified by:
deserialize
in interfaceISerializer<T>
- Parameters:
in
- The byte buffer which contains the object to be deserialized- Returns:
- The deserialized object
- Throws:
IOException
- if the deserialization fails
-