public abstract class AbstractKryoFactory extends Object implements com.esotericsoftware.kryo.pool.KryoFactory
| 构造器和说明 |
|---|
AbstractKryoFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 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–2018 The Apache Software Foundation. All rights reserved.