类 KryoPoolSerializer.KryoPoolImpl
java.lang.Object
net.oschina.j2cache.util.KryoPoolSerializer.KryoPoolImpl
- 封闭类:
- KryoPoolSerializer
由于kryo创建的代价相对较高 ,这里使用空间换时间
对KryoHolder对象进行重用
-
方法概要
修饰符和类型方法说明net.oschina.j2cache.util.KryoPoolSerializer.KryoHoldercreate a new kryo object to application usenet.oschina.j2cache.util.KryoPoolSerializer.KryoHolderget()get o KryoHolder objectstatic net.oschina.j2cache.util.KryoPoolSerializer.KryoPoolvoidoffer(net.oschina.j2cache.util.KryoPoolSerializer.KryoHolder kryoHolder) return object Inserts the specified element at the tail of this queue.
-
方法详细资料
-
getInstance
public static net.oschina.j2cache.util.KryoPoolSerializer.KryoPool getInstance()- 返回:
- KryoPool instance
-
get
public net.oschina.j2cache.util.KryoPoolSerializer.KryoHolder get()get o KryoHolder object- 返回:
- KryoHolder instance
-
creatInstnce
public net.oschina.j2cache.util.KryoPoolSerializer.KryoHolder creatInstnce()create a new kryo object to application use- 返回:
- KryoHolder instance
-
offer
public void offer(net.oschina.j2cache.util.KryoPoolSerializer.KryoHolder kryoHolder) return object Inserts the specified element at the tail of this queue.- 参数:
kryoHolder- ...
-