Interface RunningTask

    • Method Detail

      • createSubtask

        @NotNull
        @NotNull RunningLightweightTask createSubtask​(@NotNull
                                                      @NotNull LightweightTaskHandler handler)
        Creates a transient subtask, ready to execute a given LightweightTaskHandler. Owner is inherited from parent task to subtask.
      • deleteLightweightAsynchronousSubtasks

        void deleteLightweightAsynchronousSubtasks()
        Precondition: there are no runnable nor running LATs
      • makeWaitingForOtherTasks

        void makeWaitingForOtherTasks​(TaskUnpauseActionType unpauseAction)
        Changes scheduling status to WAITING. Does not change execution state. Currently use only on transient tasks OR from within task handler.
      • makeWaitingForOtherTasks

        void makeWaitingForOtherTasks​(TaskExecutionStateType execState,
                                      TaskUnpauseActionType unpauseAction)
        Changes scheduling status to WAITING, and execution state to the given value. Currently use only on transient tasks OR from within task handler.
      • getExecutionMode

        @Experimental
        @NotNull
        default @NotNull ExecutionModeType getExecutionMode()
        Returns the execution mode (e.g. execute, simulate, dry run) for the current operation. This is a little hack to avoid the need of passing this information throughout the whole call tree. (Originally this was implemented in task extension.)
      • setExecutionSupport

        void setExecutionSupport​(ExecutionSupport executionContext)
      • isExcludedFromStalenessChecking

        boolean isExcludedFromStalenessChecking()
        Returns:
        True if this task should not be checked for staleness.
      • setExcludedFromStalenessChecking

        void setExcludedFromStalenessChecking​(boolean value)
        Sets the "excluded from staleness checking" flag.