Package org.redisson.client.codec
Class BaseCodec
- java.lang.Object
-
- org.redisson.client.codec.BaseCodec
-
- All Implemented Interfaces:
Codec
- Direct Known Subclasses:
ByteArrayCodec
,FstCodec
,JsonJacksonCodec
,Kryo5Codec
,KryoCodec
,LocalCachedMessageCodec
,LZ4Codec
,MarshallingCodec
,REntity.DEFAULT
,RObjectField.DEFAULT
,SerializationCodec
,SnappyCodec
,SnappyCodecV2
,StringCodec
public abstract class BaseCodec extends Object implements Codec
- Author:
- Nikita Koksharov
-
-
Field Summary
Fields Modifier and Type Field Description static List<Class<?>>
SKIPPED_CODECS
-
Constructor Summary
Constructors Constructor Description BaseCodec()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Codec
copy(ClassLoader classLoader, Codec codec)
ClassLoader
getClassLoader()
Returns class loader object used to load classes used in decoding processDecoder<Object>
getMapKeyDecoder()
Returns object decoder used for hash map keys in HMAP Redis structureEncoder
getMapKeyEncoder()
Returns object encoder used for hash map keys in HMAP Redis structureDecoder<Object>
getMapValueDecoder()
Returns object decoder used for hash map values in HMAP Redis structureEncoder
getMapValueEncoder()
Returns object encoder used for hash map values in HMAP Redis structureString
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.redisson.client.codec.Codec
getValueDecoder, getValueEncoder
-
-
-
-
Method Detail
-
copy
public static Codec copy(ClassLoader classLoader, Codec codec) throws ReflectiveOperationException
- Throws:
ReflectiveOperationException
-
getMapValueDecoder
public Decoder<Object> getMapValueDecoder()
Description copied from interface:Codec
Returns object decoder used for hash map values in HMAP Redis structure- Specified by:
getMapValueDecoder
in interfaceCodec
- Returns:
- decoder
-
getMapValueEncoder
public Encoder getMapValueEncoder()
Description copied from interface:Codec
Returns object encoder used for hash map values in HMAP Redis structure- Specified by:
getMapValueEncoder
in interfaceCodec
- Returns:
- encoder
-
getMapKeyDecoder
public Decoder<Object> getMapKeyDecoder()
Description copied from interface:Codec
Returns object decoder used for hash map keys in HMAP Redis structure- Specified by:
getMapKeyDecoder
in interfaceCodec
- Returns:
- decoder
-
getMapKeyEncoder
public Encoder getMapKeyEncoder()
Description copied from interface:Codec
Returns object encoder used for hash map keys in HMAP Redis structure- Specified by:
getMapKeyEncoder
in interfaceCodec
- Returns:
- encoder
-
getClassLoader
public ClassLoader getClassLoader()
Description copied from interface:Codec
Returns class loader object used to load classes used in decoding process- Specified by:
getClassLoader
in interfaceCodec
- Returns:
- class loader
-
-