Package org.voltdb

Class VoltCompoundProcedure.StageListBuilder

java.lang.Object
org.voltdb.VoltCompoundProcedure.StageListBuilder
Enclosing class:
VoltCompoundProcedure

public final class VoltCompoundProcedure.StageListBuilder extends Object
Builds a list of execution stages for this 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.
See Also:
  • Method Details

    • then

      public VoltCompoundProcedure.StageListBuilder then(Consumer<org.voltdb.client.ClientResponse[]> consumer)
      Adds the next sequential state to the list of stages
      Parameters:
      consumer - next stage handler
      Returns:
      this StageListBuilder
    • build

      public void build()
      Finalizes the list of stages, and sets it up ready for execution.