Interface ITask<V>

    • Method Detail

      • onComplete

        @NotNull
        default @NotNull ITask<V> onComplete​(java.util.function.BiConsumer<ITask<V>,​V> consumer)
      • onComplete

        @NotNull
        default @NotNull ITask<V> onComplete​(java.util.function.Consumer<V> consumer)
      • onFailure

        @NotNull
        default @NotNull ITask<V> onFailure​(java.util.function.BiConsumer<ITask<V>,​java.lang.Throwable> consumer)
      • onFailure

        @NotNull
        default @NotNull ITask<V> onFailure​(java.util.function.Consumer<java.lang.Throwable> consumer)
      • onCancelled

        @NotNull
        default @NotNull ITask<V> onCancelled​(java.util.function.Consumer<ITask<V>> consumer)
      • fireExceptionOnFailure

        default ITask<V> fireExceptionOnFailure()
      • clearListeners

        @NotNull
        @NotNull ITask<V> clearListeners()
      • getCallable

        java.util.concurrent.Callable<V> getCallable()
      • getDef

        V getDef​(V def)
      • get

        V get​(long time,
              java.util.concurrent.TimeUnit timeUnit,
              V def)
      • mapThrowable

        <T> ITask<T> mapThrowable​(@Nullable
                                  @Nullable ThrowableFunction<V,​T,​java.lang.Throwable> mapper)
      • map

        default <T> ITask<T> map​(@Nullable
                                 @Nullable java.util.function.Function<V,​T> mapper)