Interface ScheduleTaskExecutor<D extends ScheduleTaskData>
- Type Parameters:
D- Type of custom data specific to the task.
public interface ScheduleTaskExecutor<D extends ScheduleTaskData>
Executor providing means to execute and validate a scheduled task's operation.
- Since:
- 5.2.14
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(@NotNull ScheduleTaskControl control, D customData, @NotNull ScheduleTaskExecutionContext executionContext) Execute with the given task information in the provided context.voidvalidate(@NotNull ScheduleTaskControl control, D customData, @NotNull ScheduleTaskExecutionContext executionContext) Validate with the given task information in the provided context.
-
Method Details
-
execute
void execute(@NotNull @NotNull ScheduleTaskControl control, @Nullable D customData, @NotNull @NotNull ScheduleTaskExecutionContext executionContext) Execute with the given task information in the provided context.- Parameters:
control- The task control.customData- The task's custom data.executionContext- The execution context.- Since:
- 5.2.14
-
validate
void validate(@NotNull @NotNull ScheduleTaskControl control, @Nullable D customData, @NotNull @NotNull ScheduleTaskExecutionContext executionContext) Validate with the given task information in the provided context.- Parameters:
control- The task control.customData- The task's custom data.executionContext- The execution context.- Since:
- 5.2.14
-