Class MessageCodec

All Implemented Interfaces:
Codec

public class MessageCodec
extends PojoCodec
PojoCodec configured to encode/decode Message<?>s.
Since:
4.2
Author:
Gary Russell
  • Constructor Details

    • MessageCodec

      public MessageCodec()
      Construct an instance using the default registration ids for message headers.
    • MessageCodec

      public MessageCodec​(MessageKryoRegistrar registrar)
      Construct an instance using a custom registrar - usually used if different registration ids are required for message headers.
      Parameters:
      registrar - the registrar.