Class GryoPool
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.structure.io.gryo.GryoPool
 
- 
 public final class GryoPool extends Object Gryo objects are somewhat expensive to construct (given the dependency on Kryo), therefore this pool helps re-use those objects.- Author:
- Marko A. Rodriguez (http://markorodriguez.com), Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classGryoPool.Builderstatic classGryoPool.Type
 - 
Field SummaryFields Modifier and Type Field Description static StringCONFIG_IO_GRYO_POOL_SIZEstatic intCONFIG_IO_GRYO_POOL_SIZE_DEFAULTstatic GryoVersionCONFIG_IO_GRYO_POOL_VERSION_DEFAULTstatic StringCONFIG_IO_GRYO_VERSION
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GryoPool.Builderbuild()<A> AdoWithReader(Function<GryoReader,A> readerFunction)voiddoWithWriter(Consumer<GryoWriter> writerFunction)GryoMappergetMapper()voidofferKryo(org.apache.tinkerpop.shaded.kryo.Kryo kryo)voidofferReader(GryoReader gryoReader)voidofferWriter(GryoWriter gryoWriter)<A> AreadWithKryo(Function<org.apache.tinkerpop.shaded.kryo.Kryo,A> kryoFunction)org.apache.tinkerpop.shaded.kryo.KryotakeKryo()GryoReadertakeReader()GryoWritertakeWriter()voidwriteWithKryo(Consumer<org.apache.tinkerpop.shaded.kryo.Kryo> kryoConsumer)
 
- 
- 
- 
Field Detail- 
CONFIG_IO_GRYO_POOL_SIZEpublic static final String CONFIG_IO_GRYO_POOL_SIZE - See Also:
- Constant Field Values
 
 - 
CONFIG_IO_GRYO_VERSIONpublic static final String CONFIG_IO_GRYO_VERSION - See Also:
- Constant Field Values
 
 - 
CONFIG_IO_GRYO_POOL_SIZE_DEFAULTpublic static final int CONFIG_IO_GRYO_POOL_SIZE_DEFAULT - See Also:
- Constant Field Values
 
 - 
CONFIG_IO_GRYO_POOL_VERSION_DEFAULTpublic static final GryoVersion CONFIG_IO_GRYO_POOL_VERSION_DEFAULT 
 
- 
 - 
Method Detail- 
buildpublic static GryoPool.Builder build() 
 - 
getMapperpublic GryoMapper getMapper() 
 - 
takeKryopublic org.apache.tinkerpop.shaded.kryo.Kryo takeKryo() 
 - 
takeReaderpublic GryoReader takeReader() 
 - 
takeWriterpublic GryoWriter takeWriter() 
 - 
offerKryopublic void offerKryo(org.apache.tinkerpop.shaded.kryo.Kryo kryo) 
 - 
offerReaderpublic void offerReader(GryoReader gryoReader) 
 - 
offerWriterpublic void offerWriter(GryoWriter gryoWriter) 
 - 
readWithKryopublic <A> A readWithKryo(Function<org.apache.tinkerpop.shaded.kryo.Kryo,A> kryoFunction) 
 - 
writeWithKryopublic void writeWithKryo(Consumer<org.apache.tinkerpop.shaded.kryo.Kryo> kryoConsumer) 
 - 
doWithReaderpublic <A> A doWithReader(Function<GryoReader,A> readerFunction) 
 - 
doWithWriterpublic void doWithWriter(Consumer<GryoWriter> writerFunction) 
 
- 
 
-