Class MessageKryoRegistrar

java.lang.Object
org.springframework.integration.codec.kryo.AbstractKryoRegistrar
org.springframework.integration.codec.kryo.MessageKryoRegistrar
All Implemented Interfaces:
KryoRegistrar

public class MessageKryoRegistrar extends AbstractKryoRegistrar
Registers common MessageHeader types and Serializers.
Since:
4.2
Author:
David Turanski, Gary Russell, Artem Bilan
  • Constructor Details

    • MessageKryoRegistrar

      public MessageKryoRegistrar()
  • Method Details

    • setMessageHeadersRegistrationId

      public void setMessageHeadersRegistrationId(int messageHeadersRegistrationId)
      Set the registration id for MessageHeaders.
      Parameters:
      messageHeadersRegistrationId - the id, default 41.
    • setMutableMessageHeadersRegistrationId

      public void setMutableMessageHeadersRegistrationId(int mutableMessageHeadersRegistrationId)
      Set the registration id for MutableMessageHeaders.
      Parameters:
      mutableMessageHeadersRegistrationId - the id, default 42.
    • setGenericMessageRegistrationId

      public void setGenericMessageRegistrationId(int genericMessageRegistrationId)
      Set the registration id for GenericMessage.
      Parameters:
      genericMessageRegistrationId - the id, default 43.
      Since:
      4.3.23
    • setErrorMessageRegistrationId

      public void setErrorMessageRegistrationId(int errorMessageRegistrationId)
      Set the registration id for ErrorMessage.
      Parameters:
      errorMessageRegistrationId - the id, default 44.
      Since:
      4.3.23
    • setAdviceMessageRegistrationId

      public void setAdviceMessageRegistrationId(int adviceMessageRegistrationId)
      Set the registration id for AdviceMessage.
      Parameters:
      adviceMessageRegistrationId - the id, default 45.
      Since:
      4.3.23
    • setMutableMessageRegistrationId

      public void setMutableMessageRegistrationId(int mutableMessageRegistrationId)
      Set the registration id for MutableMessage.
      Parameters:
      mutableMessageRegistrationId - the id, default 46.
      Since:
      4.3.23
    • setHashMapRegistrationId

      public void setHashMapRegistrationId(int hashMapRegistrationId)
      Set the registration id for HashMap.
      Parameters:
      hashMapRegistrationId - the id, default 47.
      Since:
      4.3.23
    • setUuidRegistrationId

      public void setUuidRegistrationId(int uuidRegistrationId)
      Set the registration id for UUID.
      Parameters:
      uuidRegistrationId - the id, default 48.
      Since:
      4.3.23
    • registerTypes

      public void registerTypes(com.esotericsoftware.kryo.Kryo kryo)
      Description copied from interface: KryoRegistrar
      This method is invoked by the PojoCodec and applied to the Kryo instance whenever a new instance is created.
      Specified by:
      registerTypes in interface KryoRegistrar
      Overrides:
      registerTypes in class AbstractKryoRegistrar
      Parameters:
      kryo - the Kryo instance
    • getRegistrations

      public List<com.esotericsoftware.kryo.Registration> getRegistrations()
      Returns:
      the list of Registration provided