Interface ITaskListener<T>

  • Type Parameters:
    T - the type of the listener, which should accept if the operation from the ITask instance is complete
    All Known Implementing Classes:
    CompletableTaskListener

    public interface ITaskListener<T>
    A listener for all tasks, that should handle the process
    See Also:
    ITask
    • Field Detail

      • FIRE_EXCEPTION_ON_FAILURE

        @Deprecated
        static final ITaskListener FIRE_EXCEPTION_ON_FAILURE
        Deprecated.
        An default implementation that prints an error into the System.err stream, if the operation wasn't successful
    • Method Detail

      • onComplete

        default void onComplete​(ITask<T> task,
                                T t)
      • onCancelled

        default void onCancelled​(ITask<T> task)
      • onFailure

        default void onFailure​(ITask<T> task,
                               java.lang.Throwable th)