类 KryoPoolSerializer.KryoPoolImpl

java.lang.Object
net.oschina.j2cache.util.KryoPoolSerializer.KryoPoolImpl
封闭类:
KryoPoolSerializer

public static class KryoPoolSerializer.KryoPoolImpl extends Object
由于kryo创建的代价相对较高 ,这里使用空间换时间 对KryoHolder对象进行重用
  • 方法概要

    修饰符和类型
    方法
    说明
    net.oschina.j2cache.util.KryoPoolSerializer.KryoHolder
    create a new kryo object to application use
    net.oschina.j2cache.util.KryoPoolSerializer.KryoHolder
    get()
    get o KryoHolder object
    static net.oschina.j2cache.util.KryoPoolSerializer.KryoPool
     
    void
    offer(net.oschina.j2cache.util.KryoPoolSerializer.KryoHolder kryoHolder)
    return object Inserts the specified element at the tail of this queue.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 方法详细资料

    • 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 - ...