public static class GremlinExecutor.LifeCycle extends Object
GremlinExecutor.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 the GremlinExecutor itself through the GremlinExecutor.Builder. If specified here,
they will override those global settings.| Modifier and Type | Class and Description |
|---|---|
static class |
GremlinExecutor.LifeCycle.Builder |
| Modifier and Type | Method and Description |
|---|---|
static GremlinExecutor.LifeCycle.Builder |
build() |
Optional<BiConsumer<Bindings,Throwable>> |
getAfterFailure() |
Optional<Consumer<Bindings>> |
getAfterSuccess() |
Optional<Consumer<Bindings>> |
getAfterTimeout() |
Optional<Consumer<Bindings>> |
getBeforeEval() |
Optional<Long> |
getScriptEvaluationTimeoutOverride() |
Optional<Function<Object,Object>> |
getTransformResult() |
Optional<Consumer<Object>> |
getWithResult() |
public Optional<BiConsumer<Bindings,Throwable>> getAfterFailure()
public static GremlinExecutor.LifeCycle.Builder build()
Copyright © 2013–2018 Apache Software Foundation. All rights reserved.