Package org.redisson.codec
Class ProtobufCodec
java.lang.Object
org.redisson.client.codec.BaseCodec
org.redisson.codec.ProtobufCodec
- All Implemented Interfaces:
Codec
-
Field Summary
Fields inherited from class org.redisson.client.codec.BaseCodec
SKIPPED_CODECS
-
Constructor Summary
ConstructorDescriptionProtobufCodec
(Class<?> valueClass) ProtobufCodec
(Class<?> mapKeyClass, Class<?> mapValueClass) ProtobufCodec
(Class<?> mapKeyClass, Class<?> mapValueClass, Codec blacklistCodec) ProtobufCodec
(Class<?> valueClass, Codec blacklistCodec) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBlacklist
(Class<?> clazz) Returns object decoder used for hash map keys in HMAP Redis structureReturns object encoder used for hash map keys in HMAP Redis structureReturns object decoder used for hash map values in HMAP Redis structureReturns object encoder used for hash map values in HMAP Redis structureReturns object decoder used for any objects stored Redis structure except HMAPReturns object encoder used for any objects stored Redis structure except HMAPvoid
removeBlacklist
(Class<?> clazz) Methods inherited from class org.redisson.client.codec.BaseCodec
copy, getClassLoader, toString
-
Constructor Details
-
ProtobufCodec
-
ProtobufCodec
- Parameters:
blacklistCodec
- classes in protobufBlacklist will use this codec
-
ProtobufCodec
-
ProtobufCodec
- Parameters:
blacklistCodec
- classes in protobufBlacklist will use this codec
-
-
Method Details
-
addBlacklist
-
removeBlacklist
-
getValueDecoder
Description copied from interface:Codec
Returns object decoder used for any objects stored Redis structure except HMAP- Returns:
- decoder
-
getValueEncoder
Description copied from interface:Codec
Returns object encoder used for any objects stored Redis structure except HMAP- Returns:
- encoder
-
getMapValueDecoder
Description copied from interface:Codec
Returns object decoder used for hash map values in HMAP Redis structure- Specified by:
getMapValueDecoder
in interfaceCodec
- Overrides:
getMapValueDecoder
in classBaseCodec
- Returns:
- decoder
-
getMapValueEncoder
Description copied from interface:Codec
Returns object encoder used for hash map values in HMAP Redis structure- Specified by:
getMapValueEncoder
in interfaceCodec
- Overrides:
getMapValueEncoder
in classBaseCodec
- Returns:
- encoder
-
getMapKeyDecoder
Description copied from interface:Codec
Returns object decoder used for hash map keys in HMAP Redis structure- Specified by:
getMapKeyDecoder
in interfaceCodec
- Overrides:
getMapKeyDecoder
in classBaseCodec
- Returns:
- decoder
-
getMapKeyEncoder
Description copied from interface:Codec
Returns object encoder used for hash map keys in HMAP Redis structure- Specified by:
getMapKeyEncoder
in interfaceCodec
- Overrides:
getMapKeyEncoder
in classBaseCodec
- Returns:
- encoder
-