Class GremlinExecutor.LifeCycle.Builder
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.LifeCycle.Builder
 
- 
- Enclosing class:
- GremlinExecutor.LifeCycle
 
 public static class GremlinExecutor.LifeCycle.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description GremlinExecutor.LifeCycle.BuilderafterFailure(BiConsumer<Bindings,Throwable> afterFailure)Specifies the function to execute if the script evaluation fails.GremlinExecutor.LifeCycle.BuilderafterSuccess(Consumer<Bindings> afterSuccess)Specifies the function to execute after result transformations.GremlinExecutor.LifeCycle.BuilderafterTimeout(BiConsumer<Bindings,Throwable> afterTimeout)Specifies the function to execute if the script evaluation times out.GremlinExecutor.LifeCycle.BuilderafterTimeout(Consumer<Bindings> afterTimeout)Specifies the function to execute if the script evaluation times out.GremlinExecutor.LifeCycle.BuilderbeforeEval(Consumer<Bindings> beforeEval)Specifies the function to execute prior to the script being evaluated.GremlinExecutor.LifeCyclecreate()GremlinExecutor.LifeCycle.BuilderevaluationTimeoutOverride(Long evaluationTimeoutOverride)An override to the globalevaluationTimeoutsetting on the script engine.GremlinExecutor.LifeCycle.BuildertransformResult(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.GremlinExecutor.LifeCycle.BuilderwithResult(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.
 
- 
- 
- 
Method Detail- 
beforeEvalpublic GremlinExecutor.LifeCycle.Builder beforeEval(Consumer<Bindings> beforeEval) Specifies the function to execute prior to the script being evaluated. This function can also be specified globally onGremlinExecutor.Builder.beforeEval(Consumer).
 - 
transformResultpublic GremlinExecutor.LifeCycle.Builder 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.
 - 
withResultpublic GremlinExecutor.LifeCycle.Builder 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.
 - 
afterSuccesspublic GremlinExecutor.LifeCycle.Builder afterSuccess(Consumer<Bindings> 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.
 - 
afterTimeoutpublic GremlinExecutor.LifeCycle.Builder afterTimeout(BiConsumer<Bindings,Throwable> afterTimeout) Specifies the function to execute if the script evaluation times out. This function can also be specified globally onGremlinExecutor.Builder.afterTimeout(BiConsumer).
 - 
afterTimeoutpublic GremlinExecutor.LifeCycle.Builder afterTimeout(Consumer<Bindings> afterTimeout) Specifies the function to execute if the script evaluation times out. This function can also be specified globally onGremlinExecutor.Builder.afterTimeout(BiConsumer).
 - 
afterFailurepublic GremlinExecutor.LifeCycle.Builder afterFailure(BiConsumer<Bindings,Throwable> afterFailure) Specifies the function to execute if the script evaluation fails. This function can also be specified globally onGremlinExecutor.Builder.afterFailure(BiConsumer).
 - 
evaluationTimeoutOverridepublic GremlinExecutor.LifeCycle.Builder evaluationTimeoutOverride(Long evaluationTimeoutOverride) An override to the globalevaluationTimeoutsetting on the script engine. If this value is set tonull(the default) it will use the global setting.
 - 
createpublic GremlinExecutor.LifeCycle create() 
 
- 
 
-