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 theGremlinExecutor
itself through theGremlinExecutor.Builder
. If specified here, they will override those global settings.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GremlinExecutor.LifeCycle.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GremlinExecutor.LifeCycle.Builder
build()
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
-
getAfterTimeout
public Optional<BiConsumer<Bindings,Throwable>> getAfterTimeout()
-
getAfterFailure
public Optional<BiConsumer<Bindings,Throwable>> getAfterFailure()
-
build
public static GremlinExecutor.LifeCycle.Builder build()
-
-