public abstract class AbstractKryoFactory extends Object implements com.esotericsoftware.kryo.pool.KryoFactory
| Constructor and Description |
|---|
AbstractKryoFactory() |
| Modifier and Type | Method and Description |
|---|---|
com.esotericsoftware.kryo.Kryo |
create() |
abstract com.esotericsoftware.kryo.Kryo |
getKryo() |
void |
registerClass(Class clazz)
only supposed to be called at startup time
later may consider adding support for custom serializer, custom id, etc
|
abstract void |
returnKryo(com.esotericsoftware.kryo.Kryo kryo) |
void |
setRegistrationRequired(boolean registrationRequired) |
public void registerClass(Class clazz)
public com.esotericsoftware.kryo.Kryo create()
create in interface com.esotericsoftware.kryo.pool.KryoFactorypublic void setRegistrationRequired(boolean registrationRequired)
public abstract void returnKryo(com.esotericsoftware.kryo.Kryo kryo)
public abstract com.esotericsoftware.kryo.Kryo getKryo()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.