Code example for Supplier

Methods: get

0
    this.step = step;
  } 
 
  @Override 
  public int execute(ExecutionContext context) throws InterruptedException {
    if (shouldRunStep.get()) {
      return step.execute(context);
    } else { 
      return 0; 
    } 
  } 
 
  @Override 
  public String getShortName() {
    // Use the short name of the underlying Step because StepEvent.getCategory() uses the short 
    // name to group similar step types together so they can be audited for time spent. 
    return step.getShortName();
  } 
 
  @Override