| Constructor and Description |
|---|
Builder(KryoFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
KryoPool |
build()
Build the pool.
|
KryoPool.Builder |
queue(java.util.Queue<com.esotericsoftware.kryo.Kryo> queue)
Use the given queue for pooling kryo instances (by default a
ConcurrentLinkedQueue
is used). |
KryoPool.Builder |
softReferences()
Use
SoftReferences for pooled Kryo instances, so that
instances may be garbage collected when there's memory demand (by default
disabled). |
java.lang.String |
toString() |
public Builder(KryoFactory factory)
public KryoPool.Builder queue(java.util.Queue<com.esotericsoftware.kryo.Kryo> queue)
ConcurrentLinkedQueue
is used).queue - the queue instance to use.public KryoPool.Builder softReferences()
SoftReferences for pooled Kryo instances, so that
instances may be garbage collected when there's memory demand (by default
disabled).public KryoPool build()
public java.lang.String toString()
toString in class java.lang.Object