Class MessageCodec
java.lang.Object
org.springframework.integration.codec.kryo.AbstractKryoCodec
org.springframework.integration.codec.kryo.PojoCodec
org.springframework.integration.codec.kryo.MessageCodec
- All Implemented Interfaces:
Codec
public class MessageCodec extends PojoCodec
PojoCodec
configured to encode/decode Message<?>
s.- Since:
- 4.2
- Author:
- Gary Russell
-
Field Summary
-
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
-
Constructor Details
-
MessageCodec
public MessageCodec()Construct an instance using the default registration ids for message headers. -
MessageCodec
Construct an instance using a custom registrar - usually used if different registration ids are required for message headers.- Parameters:
registrar
- the registrar.
-