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
-
Field Summary
Fields inherited from class org.springframework.integration.codec.kryo.AbstractKryoRegistrar
KRYO, log
Fields inherited from interface org.springframework.integration.codec.kryo.KryoRegistrar
MIN_REGISTRATION_VALUE
-
Constructor Summary
Constructors Constructor Description MessageKryoRegistrar()
-
Method Summary
Modifier and Type Method Description List<com.esotericsoftware.kryo.Registration>
getRegistrations()
void
registerTypes(com.esotericsoftware.kryo.Kryo kryo)
This method is invoked by thePojoCodec
and applied to theKryo
instance whenever a new instance is created.void
setAdviceMessageRegistrationId(int adviceMessageRegistrationId)
Set the registration id forAdviceMessage
.void
setErrorMessageRegistrationId(int errorMessageRegistrationId)
Set the registration id forErrorMessage
.void
setGenericMessageRegistrationId(int genericMessageRegistrationId)
Set the registration id forGenericMessage
.void
setHashMapRegistrationId(int hashMapRegistrationId)
Set the registration id forHashMap
.void
setMessageHeadersRegistrationId(int messageHeadersRegistrationId)
Set the registration id forMessageHeaders
.void
setMutableMessageHeadersRegistrationId(int mutableMessageHeadersRegistrationId)
Set the registration id forMutableMessageHeaders
.void
setMutableMessageRegistrationId(int mutableMessageRegistrationId)
Set the registration id forMutableMessage
.void
setUuidRegistrationId(int uuidRegistrationId)
Set the registration id forUUID
.
-
Constructor Details
-
MessageKryoRegistrar
public MessageKryoRegistrar()
-
-
Method Details
-
setMessageHeadersRegistrationId
public void setMessageHeadersRegistrationId(int messageHeadersRegistrationId)Set the registration id forMessageHeaders
.- Parameters:
messageHeadersRegistrationId
- the id, default 41.
-
setMutableMessageHeadersRegistrationId
public void setMutableMessageHeadersRegistrationId(int mutableMessageHeadersRegistrationId)Set the registration id forMutableMessageHeaders
.- Parameters:
mutableMessageHeadersRegistrationId
- the id, default 42.
-
setGenericMessageRegistrationId
public void setGenericMessageRegistrationId(int genericMessageRegistrationId)Set the registration id forGenericMessage
.- Parameters:
genericMessageRegistrationId
- the id, default 43.- Since:
- 4.3.23
-
setErrorMessageRegistrationId
public void setErrorMessageRegistrationId(int errorMessageRegistrationId)Set the registration id forErrorMessage
.- Parameters:
errorMessageRegistrationId
- the id, default 44.- Since:
- 4.3.23
-
setAdviceMessageRegistrationId
public void setAdviceMessageRegistrationId(int adviceMessageRegistrationId)Set the registration id forAdviceMessage
.- Parameters:
adviceMessageRegistrationId
- the id, default 45.- Since:
- 4.3.23
-
setMutableMessageRegistrationId
public void setMutableMessageRegistrationId(int mutableMessageRegistrationId)Set the registration id forMutableMessage
.- Parameters:
mutableMessageRegistrationId
- the id, default 46.- Since:
- 4.3.23
-
setHashMapRegistrationId
public void setHashMapRegistrationId(int hashMapRegistrationId)Set the registration id forHashMap
.- Parameters:
hashMapRegistrationId
- the id, default 47.- Since:
- 4.3.23
-
setUuidRegistrationId
public void setUuidRegistrationId(int uuidRegistrationId)Set the registration id forUUID
.- 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 thePojoCodec
and applied to theKryo
instance whenever a new instance is created.- Specified by:
registerTypes
in interfaceKryoRegistrar
- Overrides:
registerTypes
in classAbstractKryoRegistrar
- Parameters:
kryo
- the Kryo instance
-
getRegistrations
- Returns:
- the list of
Registration
provided
-