public static class CanaryStrategy.Generator extends java.lang.Object implements StrategyGenerator<Step>
| Constructor and Description |
|---|
Generator(Strategy<Step> postCanaryStrategy,
int requiredProceeds,
java.util.List<Step> steps)
Creates a new generator which will require a specified number of
CanaryStrategy.proceed() calls from a user before
following the provided postCanaryStrategy. |
Generator(Strategy<Step> postCanaryStrategy,
java.util.List<Step> steps)
Creates a new generator which will require 2
CanaryStrategy.proceed() calls from a user before following the
provided postCanaryStrategy. |
| Modifier and Type | Method and Description |
|---|---|
Strategy<Step> |
generate() |
public Generator(Strategy<Step> postCanaryStrategy, java.util.List<Step> steps)
CanaryStrategy.proceed() calls from a user before following the
provided postCanaryStrategy.postCanaryStrategy - the strategy to use after the canary stage has completedpublic Generator(Strategy<Step> postCanaryStrategy, int requiredProceeds, java.util.List<Step> steps)
CanaryStrategy.proceed() calls from a user before
following the provided postCanaryStrategy.postCanaryStrategy - the strategy to use after the canary stage has completedrequiredProceeds - the number of CanaryStrategy.proceed() calls to require before the provided strategy is
executedpublic Strategy<Step> generate()
generate in interface StrategyGenerator<Step>