Interface TriggerEvaluator
- All Superinterfaces:
AfterTriggerEvaluator
,BeforeTriggerEvaluator
- All Known Implementing Classes:
DefaultTriggerEvaluator
Represents the trigger evaluator to assess in 2 cases:
- whether the trigger can run before each execution round is started.
- whether the trigger should stop executing immediately after one round of execution begins.
- Since:
- 2.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@NotNull TriggerEvaluator
andThen
(@Nullable TriggerEvaluator another) Chain with another trigger evaluator.static TriggerEvaluator
byAfter
(AfterTriggerEvaluator afterEvaluator) Create a trigger evaluator with the after evaluatorstatic TriggerEvaluator
byBefore
(BeforeTriggerEvaluator beforeEvaluator) Create a trigger evaluator with the before evaluatorstatic TriggerEvaluator
create
(BeforeTriggerEvaluator beforeEvaluator, AfterTriggerEvaluator afterEvaluator) Create a trigger evaluator with the before and after evaluatorMethods inherited from interface io.github.zero88.schedulerx.trigger.AfterTriggerEvaluator
afterTrigger
Methods inherited from interface io.github.zero88.schedulerx.trigger.BeforeTriggerEvaluator
beforeTrigger
-
Method Details
-
byBefore
Create a trigger evaluator with the before evaluator- Returns:
- new trigger evaluator instance
- See Also:
-
byAfter
Create a trigger evaluator with the after evaluator- Returns:
- new trigger evaluator instance
- See Also:
-
create
static TriggerEvaluator create(BeforeTriggerEvaluator beforeEvaluator, AfterTriggerEvaluator afterEvaluator) Create a trigger evaluator with the before and after evaluator- Returns:
- new trigger evaluator instance
- See Also:
-
andThen
Chain with another trigger evaluator.- Parameters:
another
- another evaluator- Returns:
- a reference to this for fluent API
-