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
ConstructorsConstructorDescriptionProtobufCodec(Class<?> valueClass) ProtobufCodec(Class<?> mapKeyClass, Class<?> mapValueClass) ProtobufCodec(Class<?> mapKeyClass, Class<?> mapValueClass, Codec blacklistCodec) ProtobufCodec(Class<?> valueClass, Codec blacklistCodec) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlacklist(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 HMAPvoidremoveBlacklist(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:CodecReturns object decoder used for any objects stored Redis structure except HMAP- Returns:
- decoder
-
getValueEncoder
Description copied from interface:CodecReturns object encoder used for any objects stored Redis structure except HMAP- Returns:
- encoder
-
getMapValueDecoder
Description copied from interface:CodecReturns object decoder used for hash map values in HMAP Redis structure- Specified by:
getMapValueDecoderin interfaceCodec- Overrides:
getMapValueDecoderin classBaseCodec- Returns:
- decoder
-
getMapValueEncoder
Description copied from interface:CodecReturns object encoder used for hash map values in HMAP Redis structure- Specified by:
getMapValueEncoderin interfaceCodec- Overrides:
getMapValueEncoderin classBaseCodec- Returns:
- encoder
-
getMapKeyDecoder
Description copied from interface:CodecReturns object decoder used for hash map keys in HMAP Redis structure- Specified by:
getMapKeyDecoderin interfaceCodec- Overrides:
getMapKeyDecoderin classBaseCodec- Returns:
- decoder
-
getMapKeyEncoder
Description copied from interface:CodecReturns object encoder used for hash map keys in HMAP Redis structure- Specified by:
getMapKeyEncoderin interfaceCodec- Overrides:
getMapKeyEncoderin classBaseCodec- Returns:
- encoder
-