Package org.redisson.codec
Class KryoCodec.KryoPoolImpl
- java.lang.Object
-
- org.redisson.codec.KryoCodec.KryoPoolImpl
-
- All Implemented Interfaces:
KryoCodec.KryoPool
- Enclosing class:
- KryoCodec
public static class KryoCodec.KryoPoolImpl extends Object implements KryoCodec.KryoPool
-
-
Constructor Summary
Constructors Constructor Description KryoPoolImpl(List<Class<?>> classes, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.esotericsoftware.kryo.Kryo
createInstance()
Sub classes can customize the Kryo instance by overriding this methodcom.esotericsoftware.kryo.Kryo
get()
ClassLoader
getClassLoader()
void
yield(com.esotericsoftware.kryo.Kryo kryo)
-
-
-
Constructor Detail
-
KryoPoolImpl
public KryoPoolImpl(List<Class<?>> classes, ClassLoader classLoader)
-
-
Method Detail
-
get
public com.esotericsoftware.kryo.Kryo get()
- Specified by:
get
in interfaceKryoCodec.KryoPool
-
yield
public void yield(com.esotericsoftware.kryo.Kryo kryo)
- Specified by:
yield
in interfaceKryoCodec.KryoPool
-
createInstance
protected com.esotericsoftware.kryo.Kryo createInstance()
Sub classes can customize the Kryo instance by overriding this method- Returns:
- create Kryo instance
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfaceKryoCodec.KryoPool
-
-