public class MessageRedisSerializer
extends java.lang.Object
implements org.springframework.data.redis.serializer.RedisSerializer<org.springframework.integration.Message<?>>
RedisSerializer
that uses MessageBuilder
to deserialize raw bytes into
Message
sConstructor and Description |
---|
MessageRedisSerializer() |
Modifier and Type | Method and Description |
---|---|
org.springframework.integration.Message<?> |
deserialize(byte[] bytes) |
byte[] |
serialize(org.springframework.integration.Message<?> message) |
void |
setStringSerializer(org.springframework.data.redis.serializer.RedisSerializer<java.lang.String> stringSerializer) |
public byte[] serialize(org.springframework.integration.Message<?> message) throws org.springframework.data.redis.serializer.SerializationException
serialize
in interface org.springframework.data.redis.serializer.RedisSerializer<org.springframework.integration.Message<?>>
org.springframework.data.redis.serializer.SerializationException
public org.springframework.integration.Message<?> deserialize(byte[] bytes) throws org.springframework.data.redis.serializer.SerializationException
deserialize
in interface org.springframework.data.redis.serializer.RedisSerializer<org.springframework.integration.Message<?>>
org.springframework.data.redis.serializer.SerializationException
public void setStringSerializer(org.springframework.data.redis.serializer.RedisSerializer<java.lang.String> stringSerializer)
stringSerializer
- The RedisSerializer
to use for converting bytes to/from Strings before further
serialization