Class StatusEmitterInvoker
- java.lang.Object
-
- io.quarkus.scheduler.common.runtime.DelegateInvoker
-
- io.quarkus.scheduler.common.runtime.StatusEmitterInvoker
-
- All Implemented Interfaces:
ScheduledInvoker
public final class StatusEmitterInvoker extends DelegateInvoker
An invoker wrapper that fires CDI events when an execution of a scheduled method is finished.- See Also:
SuccessfulExecution,FailedExecution
-
-
Field Summary
-
Fields inherited from class io.quarkus.scheduler.common.runtime.DelegateInvoker
delegate
-
-
Constructor Summary
Constructors Constructor Description StatusEmitterInvoker(ScheduledInvoker delegate, javax.enterprise.event.Event<SuccessfulExecution> successfulEvent, javax.enterprise.event.Event<FailedExecution> failedEvent)
-
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
-
StatusEmitterInvoker
public StatusEmitterInvoker(ScheduledInvoker delegate, javax.enterprise.event.Event<SuccessfulExecution> successfulEvent, javax.enterprise.event.Event<FailedExecution> failedEvent)
-
-
Method Detail
-
invoke
public CompletionStage<Void> invoke(ScheduledExecution execution) throws Exception
- Returns:
- the result
- Throws:
Exception
-
-