Class GryoPool.Builder
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.structure.io.gryo.GryoPool.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GryoPool
create()
Create theGryoPool
from this builder.GryoPool.Builder
initializeMapper(Consumer<GryoMapper.Builder> gryoMapperConsumer)
A consumer to update theGryoMapper.Builder
once constructed.GryoPool.Builder
ioRegistries(List<Object> ioRegistryClassNames)
TheIoRegistry
class names to use for theGryoPool
GryoPool.Builder
ioRegistry(Object ioRegistryClassName)
TheIoRegistry
class name to use for theGryoPool
GryoPool.Builder
poolSize(int poolSize)
The size of theGryoPool
.GryoPool.Builder
type(GryoPool.Type type)
The type ofGryoPool
to support -- seeType
GryoPool.Builder
version(GryoVersion version)
Set the version of Gryo to use for this pool.
-
-
-
Method Detail
-
version
public GryoPool.Builder version(GryoVersion version)
Set the version of Gryo to use for this pool.
-
ioRegistries
public GryoPool.Builder ioRegistries(List<Object> ioRegistryClassNames)
TheIoRegistry
class names to use for theGryoPool
- Parameters:
ioRegistryClassNames
- a list of class names- Returns:
- the update builder
-
ioRegistry
public GryoPool.Builder ioRegistry(Object ioRegistryClassName)
TheIoRegistry
class name to use for theGryoPool
- Parameters:
ioRegistryClassName
- a class name- Returns:
- the update builder
-
poolSize
public GryoPool.Builder poolSize(int poolSize)
The size of theGryoPool
. The size can not be changed once created.- Parameters:
poolSize
- the pool size- Returns:
- the updated builder
-
type
public GryoPool.Builder type(GryoPool.Type type)
The type ofGryoPool
to support -- seeType
- Parameters:
type
- the pool type- Returns:
- the updated builder
-
initializeMapper
public GryoPool.Builder initializeMapper(Consumer<GryoMapper.Builder> gryoMapperConsumer)
A consumer to update theGryoMapper.Builder
once constructed.- Parameters:
gryoMapperConsumer
- theGryoMapper.Builder
consumer- Returns:
- the updated builder
-
create
public GryoPool create()
Create theGryoPool
from this builder.- Returns:
- the new pool
-
-