Package com.esotericsoftware.kryo.util

Examples of com.esotericsoftware.kryo.util.FastestStreamFactory


    kryo = null; // remove strong ref, now kryo is only weak-reachable
    reclaim(kryoWeakRef);
  }

  public void testFastestStreamFactory () {
    final FastestStreamFactory strongRefToStreamFactory = new FastestStreamFactory();
    Kryo kryo = new Kryo(new DefaultClassResolver(), new MapReferenceResolver(), strongRefToStreamFactory);
    WeakReference<Kryo> kryoWeakRef = new WeakReference<Kryo>(kryo);
    kryo = null; // remove strong ref, now kryo is only weak-reachable
    reclaim(kryoWeakRef);
  }
View Full Code Here

TOP

Related Classes of com.esotericsoftware.kryo.util.FastestStreamFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.