public static class Pool.PoolModeOrBuild<T> extends Pool.PoolBuild<T>
pool| Modifier | Constructor and Description |
|---|---|
private |
PoolModeOrBuild(Pool<T> pool) |
| Modifier and Type | Method and Description |
|---|---|
Pool.PoolBuild<T> |
mode(SerializationMode serializationMode)
Specify the serializationMode
SerializationMode.STANDARD: the standard mode, i.e. |
build, buildpublic Pool.PoolBuild<T> mode(SerializationMode serializationMode)
SerializationMode.STANDARD: the standard mode, i.e. all elements of the
pool are also serialized and a NotSerializableException may thrownSerializationMode.NONE: no element of the pool is also serialized and it
must be populated again after serializationSerializationMode.FORCE: all element of the pool are serialized, if
possible. Otherwise the pool is empty after serialization and must be populated
again.serializationMode - java.lang.IllegalArgumentException - if the serialization mode is not one of the
predefined values