Package arez

Interface TaskInterceptor

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@OmitType(unless="arez.enable_task_interceptor") @FunctionalInterface public interface TaskInterceptor
An interceptor that intercepts the execution of tasks. This enables downstream the injection of logic before and after tasks have been scheduled.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    executeTasks(SafeProcedure executeAction)
    Method invoked to execute tasks.
  • Method Details

    • executeTasks

      void executeTasks(@Nonnull SafeProcedure executeAction)
      Method invoked to execute tasks.
      Parameters:
      executeAction - action to invoke to execute tasks.