Interface PersistTaskEx

    • Method Detail

      • run

        void run()
      • markAsFinished

        void markAsFinished()
      • addError

        void addError​(@NotNull
                      Exception error)
      • canBeInterrupted

        boolean canBeInterrupted()
      • isCanceled

        default boolean isCanceled()
      • getFileWatcher

        @Nullable
        default FileWatcher getFileWatcher()
      • notifyFileWatcher

        default boolean notifyFileWatcher()
      • onRemoveFromQueue

        default void onRemoveFromQueue()
      • rethrowError

        void rethrowError()
      • updateStage

        boolean updateStage​(@NotNull
                            PersistTaskStage stage)
        Updates the inner stage of the task without the database updating.
        Parameters:
        stage - the current stage of the task
        Returns:
        true if task's stage was changed, false otherwise
      • getCreationTime

        long getCreationTime()
      • setAddedToQueueInsideAnotherTask

        void setAddedToQueueInsideAnotherTask()
      • isAddedToQueueInsideAnotherTask

        boolean isAddedToQueueInsideAnotherTask()
      • getUser

        @Nullable
        User getUser()