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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the pool.Use the given queue for pooling kryo instances (by default aConcurrentLinkedQueue
is used).UseSoftReference
s for pooledKryo
instances, 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 aConcurrentLinkedQueue
is used). -
softReferences
UseSoftReference
s for pooledKryo
instances, so that instances may be garbage collected when there's memory demand (by default disabled). -
build
Build the pool. -
toString
-