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()
  • 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