Interface TaskBackgroundProcessor
- All Known Implementing Classes:
WarningsBackgroundProcessor
@ExperimentalApi
@Internal
public interface TaskBackgroundProcessor
An interface allowing tasks to initiate processing, e.g. create a log interceptor before actual task is started.
Init methods are called in order of task definition, before any task is started.
Finalise methods are called in reverse order after task processing is finished (note that it doesn't
mean all the tasks are actually run)
The methods are allowed to modify runtime task data.
This API is subject to change.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finaliseProcessing
(@NotNull RuntimeTaskDefinition taskDefinition, @NotNull CommonContext commonContext) void
initProcessing
(@NotNull RuntimeTaskDefinition taskDefinition, @NotNull CommonContext context)
-
Method Details
-
initProcessing
void initProcessing(@NotNull @NotNull RuntimeTaskDefinition taskDefinition, @NotNull @NotNull CommonContext context) -
finaliseProcessing
void finaliseProcessing(@NotNull @NotNull RuntimeTaskDefinition taskDefinition, @NotNull @NotNull CommonContext commonContext)
-