Package com.esotericsoftware.kryo.pool
Class KryoPool.Builder
java.lang.Object
com.esotericsoftware.kryo.pool.KryoPool.Builder
- Enclosing interface:
KryoPool
Builder for a
KryoPool instance, constructs a KryoPoolQueueImpl instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the pool.Use the given queue for pooling kryo instances (by default aConcurrentLinkedQueueis used).UseSoftReferences for pooledKryoinstances, so that instances may be garbage collected when there's memory demand (by default disabled).toString()
-
Constructor Details
-
Builder
-
-
Method Details
-
queue
Use the given queue for pooling kryo instances (by default aConcurrentLinkedQueueis used). -
softReferences
UseSoftReferences for pooledKryoinstances, so that instances may be garbage collected when there's memory demand (by default disabled). -
build
Build the pool. -
toString
-