Constructor and Description |
---|
Builder(KryoFactory factory) |
Modifier and Type | Method and Description |
---|---|
KryoPool |
build()
Build the pool.
|
KryoPool.Builder |
queue(Queue<Kryo> queue)
Use the given queue for pooling kryo instances (by default a
ConcurrentLinkedQueue is used). |
KryoPool.Builder |
softReferences()
Use
SoftReference s for pooled Kryo instances, so that instances may be garbage collected when there's
memory demand (by default disabled). |
String |
toString() |
public Builder(KryoFactory factory)
public KryoPool.Builder queue(Queue<Kryo> queue)
ConcurrentLinkedQueue
is used).public KryoPool.Builder softReferences()
SoftReference
s for pooled Kryo
instances, so that instances may be garbage collected when there's
memory demand (by default disabled).public KryoPool build()
Copyright © 2018. All rights reserved.