Package org.redisson.codec
Class KryoCodec
- java.lang.Object
-
- org.redisson.client.codec.BaseCodec
-
- org.redisson.codec.KryoCodec
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
KryoCodec.RedissonKryoCodecException
-
Field Summary
-
Fields inherited from class org.redisson.client.codec.BaseCodec
SKIPPED_CODECS
-
-
Constructor Summary
Constructors Constructor Description KryoCodec()
KryoCodec(ClassLoader classLoader)
KryoCodec(ClassLoader classLoader, KryoCodec codec)
KryoCodec(List<Class<?>> classes)
KryoCodec(List<Class<?>> classes, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.esotericsoftware.kryo.Kryo
createInstance(List<Class<?>> classes, ClassLoader classLoader)
Sub classes can customize the Kryo instance by overriding this methodcom.esotericsoftware.kryo.Kryo
get()
ClassLoader
getClassLoader()
Returns class loader object used to load classes used in decoding processDecoder<Object>
getValueDecoder()
Returns object decoder used for any objects stored Redis structure except HMAPEncoder
getValueEncoder()
Returns object encoder used for any objects stored Redis structure except HMAPvoid
yield(com.esotericsoftware.kryo.Kryo kryo)
-
Methods inherited from class org.redisson.client.codec.BaseCodec
copy, getMapKeyDecoder, getMapKeyEncoder, getMapValueDecoder, getMapValueEncoder, toString
-
-
-
-
Constructor Detail
-
KryoCodec
public KryoCodec()
-
KryoCodec
public KryoCodec(ClassLoader classLoader)
-
KryoCodec
public KryoCodec(ClassLoader classLoader, KryoCodec codec)
-
KryoCodec
public KryoCodec(List<Class<?>> classes, ClassLoader classLoader)
-
-
Method Detail
-
get
public com.esotericsoftware.kryo.Kryo get()
-
yield
public void yield(com.esotericsoftware.kryo.Kryo kryo)
-
createInstance
protected com.esotericsoftware.kryo.Kryo createInstance(List<Class<?>> classes, ClassLoader classLoader)
Sub classes can customize the Kryo instance by overriding this method- Returns:
- create Kryo instance
-
getValueDecoder
public Decoder<Object> getValueDecoder()
Description copied from interface:Codec
Returns object decoder used for any objects stored Redis structure except HMAP- Returns:
- decoder
-
getValueEncoder
public Encoder getValueEncoder()
Description copied from interface:Codec
Returns object encoder used for any objects stored Redis structure except HMAP- 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
- Overrides:
getClassLoader
in classBaseCodec
- Returns:
- class loader
-
-