Class Codecs.JsonCodec
- java.lang.Object
-
- io.quarkus.redis.datasource.codecs.Codecs.JsonCodec
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(Type clazz)
Checks if the current codec can handle the serialization and deserialization of object from the given type.Object
decode(byte[] payload)
Decodes the given bytes to an object.byte[]
encode(Object item)
Encodes the given object.
-
-
-
Constructor Detail
-
JsonCodec
public JsonCodec(Type clazz)
-
-
Method Detail
-
canHandle
public boolean canHandle(Type clazz)
Description copied from interface:Codec
Checks if the current codec can handle the serialization and deserialization of object from the given type.
-
encode
public byte[] encode(Object item)
Description copied from interface:Codec
Encodes the given object. The type of the given object matches the type used to call theCodec.canHandle(Type)
method.
-
decode
public Object decode(byte[] payload)
Description copied from interface:Codec
Decodes the given bytes to an object. The codec must return an instance of the type used to call theCodec.canHandle(Type)
method.
-
-