Class KryoPool.Builder
java.lang.Object
com.esotericsoftware.kryo.pool.KryoPool.Builder
- Enclosing interface:
KryoPool
Builder for a
KryoPool instance, constructs a KryoPoolQueueImpl instance.-
Field Summary
Fields -
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()
-
Field Details
-
factory
-
queue
-
softReferences
private boolean softReferences
-
-
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
-