Interface PersistTask

    • Method Detail

      • getId

        long getId()
      • await

        boolean await​(long timeoutMillis)
               throws InterruptedException
        Blocks caller until the task is finished or timeout is exceeded.
        Parameters:
        timeoutMillis - timeout in milliseconds to wait
        Returns:
        true if the task finished, false otherwise
        Throws:
        InterruptedException - if the thread was interrupted
      • awaitUninterruptibly

        default void awaitUninterruptibly()
        Blocks caller until task is finished. If caller thread is interrupted this method doesn't throw an InterruptedException and continues to wait until the task is finished. When the thread returns from this method its interrupt status will be set.
      • getDescription

        @NotNull
        String getDescription()
        Returns task description.
        Returns:
        task description
      • getError

        @Nullable
        Throwable getError()
        Returns an error thrown by fs operation or null if there was no errors.
        Returns:
        an error thrown by fs operation or null if there was no errors