MessageEntity - The type of entity that this serializer serializes.WireFormat - The wire format that this serializer serializes to.public static interface MessageSerializer.NegotiatedSerializer<MessageEntity,WireFormat>
| Modifier and Type | Method and Description |
|---|---|
default MessageProtocol |
protocol()
Get the protocol associated with this entity.
|
WireFormat |
serialize(MessageEntity messageEntity)
Serialize the given message entity.
|
default MessageProtocol protocol()
WireFormat serialize(MessageEntity messageEntity) throws SerializationException
messageEntity - The entity to serialize.SerializationException