public final class VoltCompoundProcedure.StageListBuilder
extends java.lang.Object
VoltCompoundProcedure
.
The stage list is built at the start of execution, in your procedure's
run
method, like this:
newStageList(STAGE)
.then(STAGE)
.then(STAGE)
.build();
A stage list is created by the call to VoltCompoundProcedure.newStageList(java.util.function.Consumer<org.voltdb.client.ClientResponse[]>)
, with
the first stage to be executed. Additional stages can be added
one-by-one as required by the application logic. Once built, the
stage list cannot be changed.VoltCompoundProcedure.Stage
Modifier and Type | Method and Description |
---|---|
void |
build()
Finalizes the list of stages, and sets it up ready
for execution.
|
VoltCompoundProcedure.StageListBuilder |
then(java.util.function.Consumer<org.voltdb.client.ClientResponse[]> consumer)
Adds the next sequential state to the list of stages
|
public VoltCompoundProcedure.StageListBuilder then(java.util.function.Consumer<org.voltdb.client.ClientResponse[]> consumer)
consumer
- next stage handlerpublic void build()