Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GryoPool |
create()
Create the
GryoPool from this builder. |
GryoPool.Builder |
initializeMapper(Consumer<GryoMapper.Builder> gryoMapperConsumer)
A consumer to update the
GryoMapper.Builder once constructed. |
GryoPool.Builder |
ioRegistries(List<Object> ioRegistryClassNames)
The
IoRegistry class names to use for the GryoPool |
GryoPool.Builder |
ioRegistry(Object ioRegistryClassName)
The
IoRegistry class name to use for the GryoPool |
GryoPool.Builder |
poolSize(int poolSize)
The size of the
GryoPool . |
GryoPool.Builder |
type(GryoPool.Type type)
The type of
GryoPool to support -- see Type |
GryoPool.Builder |
version(GryoVersion version)
Set the version of Gryo to use for this pool.
|
public GryoPool.Builder version(GryoVersion version)
public GryoPool.Builder ioRegistries(List<Object> ioRegistryClassNames)
IoRegistry
class names to use for the GryoPool
ioRegistryClassNames
- a list of class namespublic GryoPool.Builder ioRegistry(Object ioRegistryClassName)
IoRegistry
class name to use for the GryoPool
ioRegistryClassName
- a class namepublic GryoPool.Builder poolSize(int poolSize)
GryoPool
. The size can not be changed once created.poolSize
- the pool sizepublic GryoPool.Builder type(GryoPool.Type type)
GryoPool
to support -- see Type
type
- the pool typepublic GryoPool.Builder initializeMapper(Consumer<GryoMapper.Builder> gryoMapperConsumer)
GryoMapper.Builder
once constructed.gryoMapperConsumer
- the GryoMapper.Builder
consumerpublic GryoPool create()
GryoPool
from this builder.Copyright © 2013–2019 Apache Software Foundation. All rights reserved.