Class GryoPool.Builder
java.lang.Object
org.apache.tinkerpop.gremlin.structure.io.gryo.GryoPool.Builder
- Enclosing class:
- GryoPool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create theGryoPoolfrom this builder.initializeMapper(Consumer<GryoMapper.Builder> gryoMapperConsumer) A consumer to update theGryoMapper.Builderonce constructed.ioRegistries(List<Object> ioRegistryClassNames) TheIoRegistryclass names to use for theGryoPoolioRegistry(Object ioRegistryClassName) TheIoRegistryclass name to use for theGryoPoolpoolSize(int poolSize) The size of theGryoPool.type(GryoPool.Type type) The type ofGryoPoolto support -- seeTypeversion(GryoVersion version) Set the version of Gryo to use for this pool.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
version
Set the version of Gryo to use for this pool. -
ioRegistries
TheIoRegistryclass names to use for theGryoPool- Parameters:
ioRegistryClassNames- a list of class names- Returns:
- the update builder
-
ioRegistry
TheIoRegistryclass name to use for theGryoPool- Parameters:
ioRegistryClassName- a class name- Returns:
- the update builder
-
poolSize
The size of theGryoPool. The size can not be changed once created.- Parameters:
poolSize- the pool size- Returns:
- the updated builder
-
type
The type ofGryoPoolto support -- seeType- Parameters:
type- the pool type- Returns:
- the updated builder
-
initializeMapper
A consumer to update theGryoMapper.Builderonce constructed.- Parameters:
gryoMapperConsumer- theGryoMapper.Builderconsumer- Returns:
- the updated builder
-
create
Create theGryoPoolfrom this builder.- Returns:
- the new pool
-