public interface Workflow extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the workflow and releases all open resources (file descriptors, socket connections,
etc.).
|
boolean |
execute()
Executes the workflow.
|
void |
init()
Initializes the workflow.
|
void init() throws Exception
This method is guaranteed to be called once and only once by the execution engine.
Exception - if the workflow could not be initialized properly.boolean execute()
throws TooManyErrorsException,
Exception
This method is guaranteed to be called once and only once by the execution engine, and only after the workflow has been properly initialized.
true if the workflow completed without any errors, false if it
completed with errors.TooManyErrorsException - if the workflow encountered too many non-fatal errors and
decided to stop.Exception - if the workflow encountered a fatal error that prevented it from completing.void close()
throws Exception
This method is guaranteed to be called once and only once by the execution engine, and only
after the workflow has finished its execution, regardless of whether the
execution finished normally or exceptionally.
close in interface AutoCloseableException - if the workflow encountered an error while closing open resources.Copyright © 2017–2021 DataStax. All rights reserved.