Class MessageCodec

java.lang.Object
All Implemented Interfaces:
Codec

public class MessageCodec
extends PojoCodec
PojoCodec configured to encode/decode Message<?>s.
Since:
4.2
  • Field Summary

    Fields inherited from class org.springframework.integration.codec.kryo.AbstractKryoCodec

    pool
  • Constructor Summary

    Constructors 
    Constructor Description
    MessageCodec()
    Construct an instance using the default registration ids for message headers.
    MessageCodec​(MessageKryoRegistrar registrar)
    Construct an instance using a custom registrar - usually used if different registration ids are required for message headers.
  • Method Summary

    Methods inherited from class org.springframework.integration.codec.kryo.PojoCodec

    configureKryoInstance, doDecode, doEncode

    Methods inherited from class org.springframework.integration.codec.kryo.AbstractKryoCodec

    decode, decode, encode, encode

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.