Class SkipPredicateInvoker
java.lang.Object
io.quarkus.scheduler.common.runtime.DelegateInvoker
io.quarkus.scheduler.common.runtime.SkipPredicateInvoker
- All Implemented Interfaces:
ScheduledInvoker
A scheduled invoker wrapper that skips the execution if the predicate evaluates to true.
- See Also:
-
Field Summary
Fields inherited from class io.quarkus.scheduler.common.runtime.DelegateInvoker
delegate -
Constructor Summary
ConstructorsConstructorDescriptionSkipPredicateInvoker(ScheduledInvoker delegate, io.quarkus.scheduler.Scheduled.SkipPredicate predicate, jakarta.enterprise.event.Event<io.quarkus.scheduler.SkippedExecution> event) -
Method Summary
Methods inherited from class io.quarkus.scheduler.common.runtime.DelegateInvoker
invokeComplete, invokeDelegate, isBlocking, isRunningOnVirtualThread
-
Constructor Details
-
SkipPredicateInvoker
public SkipPredicateInvoker(ScheduledInvoker delegate, io.quarkus.scheduler.Scheduled.SkipPredicate predicate, jakarta.enterprise.event.Event<io.quarkus.scheduler.SkippedExecution> event)
-
-
Method Details
-
invoke
public CompletionStage<Void> invoke(io.quarkus.scheduler.ScheduledExecution execution) throws Exception - Parameters:
execution-- Returns:
- the result, never
null - Throws:
Exception
-