Class GryoPool.Builder
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.structure.io.gryo.GryoPool.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll 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- 
versionpublic GryoPool.Builder version(GryoVersion version) Set the version of Gryo to use for this pool.
 - 
ioRegistriespublic GryoPool.Builder ioRegistries(List<Object> ioRegistryClassNames) TheIoRegistryclass names to use for theGryoPool- Parameters:
- ioRegistryClassNames- a list of class names
- Returns:
- the update builder
 
 - 
ioRegistrypublic GryoPool.Builder ioRegistry(Object ioRegistryClassName) TheIoRegistryclass name to use for theGryoPool- Parameters:
- ioRegistryClassName- a class name
- Returns:
- the update builder
 
 - 
poolSizepublic 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
 
 - 
typepublic GryoPool.Builder type(GryoPool.Type type) The type ofGryoPoolto support -- seeType- Parameters:
- type- the pool type
- Returns:
- the updated builder
 
 - 
initializeMapperpublic GryoPool.Builder initializeMapper(Consumer<GryoMapper.Builder> gryoMapperConsumer) A consumer to update theGryoMapper.Builderonce constructed.- Parameters:
- gryoMapperConsumer- the- GryoMapper.Builderconsumer
- Returns:
- the updated builder
 
 - 
createpublic GryoPool create() Create theGryoPoolfrom this builder.- Returns:
- the new pool
 
 
- 
 
-