Class SkipPredicateInvoker
- java.lang.Object
-
- io.quarkus.scheduler.common.runtime.DelegateInvoker
-
- io.quarkus.scheduler.common.runtime.SkipPredicateInvoker
-
- All Implemented Interfaces:
ScheduledInvoker
public final class SkipPredicateInvoker extends DelegateInvoker
A scheduled invoker wrapper that skips the execution if the predicate evaluates to true.- See Also:
Scheduled.skipExecutionIf()
-
-
Field Summary
-
Fields inherited from class io.quarkus.scheduler.common.runtime.DelegateInvoker
delegate
-
-
Constructor Summary
Constructors Constructor Description SkipPredicateInvoker(ScheduledInvoker delegate, Scheduled.SkipPredicate predicate, javax.enterprise.event.Event<SkippedExecution> event)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>invoke(ScheduledExecution execution)-
Methods inherited from class io.quarkus.scheduler.common.runtime.DelegateInvoker
isBlocking
-
-
-
-
Constructor Detail
-
SkipPredicateInvoker
public SkipPredicateInvoker(ScheduledInvoker delegate, Scheduled.SkipPredicate predicate, javax.enterprise.event.Event<SkippedExecution> event)
-
-
Method Detail
-
invoke
public CompletionStage<Void> invoke(ScheduledExecution execution) throws Exception
- Returns:
- the result
- Throws:
Exception
-
-