Class GremlinExecutor.LifeCycle.Builder
java.lang.Object
org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.LifeCycle.Builder
- Enclosing class:
- GremlinExecutor.LifeCycle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafterFailure(BiConsumer<Bindings, Throwable> afterFailure) Specifies the function to execute if the script evaluation fails.afterSuccess(Consumer<Bindings> afterSuccess) Specifies the function to execute after result transformations.afterTimeout(BiConsumer<Bindings, Throwable> afterTimeout) Specifies the function to execute if the script evaluation times out.afterTimeout(Consumer<Bindings> afterTimeout) Specifies the function to execute if the script evaluation times out.beforeEval(Consumer<Bindings> beforeEval) Specifies the function to execute prior to the script being evaluated.create()timeoutMillisOverride(Long timeoutMillisOverride) An override to the globaltimeoutMillissetting on the script engine.transformResult(Function<Object, Object> transformResult) Specifies the function to execute on the result of the script evaluation just after script evaluation returns but before the script evaluation is marked as complete.withResult(Consumer<Object> withResult) Specifies the function to execute on the result of the script evaluation just after script evaluation returns but before the script evaluation is marked as complete.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
beforeEval
Specifies the function to execute prior to the script being evaluated. This function can also be specified globally onGremlinExecutor.Builder.beforeEval(Consumer). -
transformResult
Specifies the function to execute on the result of the script evaluation just after script evaluation returns but before the script evaluation is marked as complete. -
withResult
Specifies the function to execute on the result of the script evaluation just after script evaluation returns but before the script evaluation is marked as complete. -
afterSuccess
Specifies the function to execute after result transformations. This function can also be specified globally onGremlinExecutor.Builder.afterSuccess(Consumer). The script evaluation will be marked as "complete" after this method. -
afterTimeout
Specifies the function to execute if the script evaluation times out. This function can also be specified globally onGremlinExecutor.Builder.afterTimeout(BiConsumer). -
afterTimeout
Specifies the function to execute if the script evaluation times out. This function can also be specified globally onGremlinExecutor.Builder.afterTimeout(BiConsumer). -
afterFailure
Specifies the function to execute if the script evaluation fails. This function can also be specified globally onGremlinExecutor.Builder.afterFailure(BiConsumer). -
timeoutMillisOverride
An override to the globaltimeoutMillissetting on the script engine. If this value is set tonull(the default) it will use the global setting. -
create
-