Class GremlinExecutor.LifeCycle
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.LifeCycle
 
- 
- Enclosing class:
- GremlinExecutor
 
 public static class GremlinExecutor.LifeCycle extends Object The lifecycle of execution within the#eval(String, String, Bindings, LifeCycle)method. Since scripts are executed in a thread pool and graph transactions are bound to a thread all actions related to that script evaluation, both before and after that evaluation, need to be executed in the same thread. This leads to a lifecycle of actions that can occur within that evaluation. Note that some of these options can be globally set on theGremlinExecutoritself through theGremlinExecutor.Builder. If specified here, they will override those global settings.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classGremlinExecutor.LifeCycle.Builder
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GremlinExecutor.LifeCycle.Builderbuild()Optional<BiConsumer<Bindings,Throwable>>getAfterFailure()Optional<Consumer<Bindings>>getAfterSuccess()Optional<BiConsumer<Bindings,Throwable>>getAfterTimeout()Optional<Consumer<Bindings>>getBeforeEval()Optional<Long>getEvaluationTimeoutOverride()Optional<Function<Object,Object>>getTransformResult()Optional<Consumer<Object>>getWithResult()
 
- 
- 
- 
Method Detail- 
getAfterTimeoutpublic Optional<BiConsumer<Bindings,Throwable>> getAfterTimeout() 
 - 
getAfterFailurepublic Optional<BiConsumer<Bindings,Throwable>> getAfterFailure() 
 - 
buildpublic static GremlinExecutor.LifeCycle.Builder build() 
 
- 
 
-