Interface MultiNodeTasks.PersistedTask

    • Method Detail

      • getId

        int getId()
      • getCreateTime

        @NotNull
        Date getCreateTime()
      • getLastActivityTime

        @Nullable
        Date getLastActivityTime()
        Returns:
        time when some actions related to this task were performed the last time.
      • setLastActivityTime

        void setLastActivityTime​(@NotNull
                                 Date lastActivityTime)
        Updates the last activity time for the task
        Parameters:
        lastActivityTime -
      • finished

        void finished()
        Marks the task as finished
      • finished

        void finished​(@NotNull
                      Date finishDate,
                      @Nullable
                      String result)
        Marks the task as finished and associates some result and a finish date with it, see MultiNodeTasks.SubmittedTask.getResult(). The result length must not exceed 1024 characters.
        Parameters:
        finishDate -
        result -
        Since:
        2022.10
      • isCancelled

        boolean isCancelled()
        Returns:
        true if this task is cancelled
      • cancel

        void cancel()
        Cancel the task. This method just triggers the task cancellation and doesn't wait until the task is completed.
      • getLongStrArgUUID

        @Nullable
        String getLongStrArgUUID()