Class ConditionCombination
java.lang.Object
io.superdurable.dex.ConditionCombination
Groups conditions that must all be satisfied as one alternative in a combined wait.
Pass one or more combinations to Wait.anyCombinationOf(ConditionCombination...). Dex resumes the Step when all
conditions in any one combination are satisfied.
return Wait.anyCombinationOf(
ConditionCombination.of(
approval.forOne("approval"),
Timer.byDuration(shortDelay, "short-delay")),
ConditionCombination.of(manualOverride.forOne("manual")));
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConditionCombinationCreates a combination whose conditions must all be satisfied.
-
Method Details
-
of
Creates a combination whose conditions must all be satisfied. Each Condition needs a non-empty ID when passed toWait.anyCombinationOf(ConditionCombination...).- Parameters:
conditions- the conditions in this alternative- Returns:
- an immutable condition combination
-