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 GryoPoolcreate()Create theGryoPoolfrom this builder.GryoPool.BuilderinitializeMapper(Consumer<GryoMapper.Builder> gryoMapperConsumer)A consumer to update theGryoMapper.Builderonce constructed.GryoPool.BuilderioRegistries(List<Object> ioRegistryClassNames)TheIoRegistryclass names to use for theGryoPoolGryoPool.BuilderioRegistry(Object ioRegistryClassName)TheIoRegistryclass name to use for theGryoPoolGryoPool.BuilderpoolSize(int poolSize)The size of theGryoPool.GryoPool.Buildertype(GryoPool.Type type)The type ofGryoPoolto support -- seeTypeGryoPool.Builderversion(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)
TheIoRegistryclass names to use for theGryoPool- Parameters:
 ioRegistryClassNames- a list of class names- Returns:
 - the update builder
 
 
- 
ioRegistry
public GryoPool.Builder ioRegistry(Object ioRegistryClassName)
TheIoRegistryclass 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 ofGryoPoolto 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.Builderonce constructed.- Parameters:
 gryoMapperConsumer- theGryoMapper.Builderconsumer- Returns:
 - the updated builder
 
 
- 
create
public GryoPool create()
Create theGryoPoolfrom this builder.- Returns:
 - the new pool
 
 
 - 
 
 -