public class CountWorkflow extends Object implements Workflow
| 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.
|
String |
toString() |
public void init()
throws Exception
WorkflowThis method is guaranteed to be called once and only once by the execution engine.
public boolean execute()
WorkflowThis method is guaranteed to be called once and only once by the execution engine, and only after the workflow has been properly initialized.
public void close()
throws Exception
WorkflowThis 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 Workflowclose in interface AutoCloseableException - if the workflow encountered an error while closing open resources.Copyright © 2017–2021 DataStax. All rights reserved.