AsyncOperationWithProgress<T,P> Class

  • java.lang.Object
    • java.util.concurrent.Future<T>

Type Parameters

T
P

Type of progress information

public class AsyncOperationWithProgress<T,P> extends AsyncOperation

Version of AsyncOperation that can provide progress via the Progress event.

Method Summary

Modifier and Type Method and Description
abstract Event<AsyncOperationWithProgress<T, P>, P> progress()

This event is fired when there is progress towards the completion of the asynchronous operation.

Inherited Members

AsyncOperation<T>._whenCompleteAsyncInternal(AsyncOperation.ResultBiConsumer<? super T, ? super Throwable> action, Executor executor) AsyncOperation<T>.acceptEither( @NonNull AsyncOperation<? extends T> other, @NonNull AsyncOperation.ResultConsumer<? super T> action) AsyncOperation<T>.acceptEitherAsync( @NonNull AsyncOperation<? extends T> other, AsyncOperation.ResultConsumer<? super T> action, @NonNull Executor executor) AsyncOperation<T>.acceptEitherAsync( @NonNull AsyncOperation<? extends T> other, @NonNull AsyncOperation.ResultConsumer<? super T> action) AsyncOperation<T>.allOf(@NonNull AsyncOperation<?>... operations) AsyncOperation<T>.anyOf(@NonNull AsyncOperation<?>... operations) AsyncOperation<T>.AsyncOperation() AsyncOperation<T>.cancel(boolean mayInterruptIfRunning) AsyncOperation<T>.complete(T value) AsyncOperation<T>.completedFuture(U value) AsyncOperation<T>.completeExceptionally(@NonNull Throwable ex) AsyncOperation<T>.exceptionally(@NonNull AsyncOperation.ResultFunction<Throwable, ? extends T> action) AsyncOperation<T>.get() AsyncOperation<T>.get(long timeout, @NonNull TimeUnit unit) AsyncOperation<T>.getNow(T valueIfAbsent) AsyncOperation<T>.getNumberOfDependents() AsyncOperation<T>.isCancelled() AsyncOperation<T>.isCompletedExceptionally() AsyncOperation<T>.isDone() AsyncOperation<T>.join() AsyncOperation<T>.runAfterBoth(@NonNull AsyncOperation<?> other, @NonNull Runnable action) AsyncOperation<T>.runAfterBothAsync(@NonNull AsyncOperation<?> other, @NonNull Runnable action, @NonNull Executor executor) AsyncOperation<T>.runAfterBothAsync(@NonNull AsyncOperation<?> other, @NonNull Runnable action) AsyncOperation<T>.runAfterEither(@NonNull AsyncOperation<?> other, @NonNull Runnable action) AsyncOperation<T>.runAfterEitherAsync( @NonNull AsyncOperation<?> other, @NonNull Runnable action, @NonNull Executor executor) AsyncOperation<T>.runAfterEitherAsync(@NonNull AsyncOperation<?> other, @NonNull Runnable action) AsyncOperation<T>.runAsync(@NonNull Runnable runnable) AsyncOperation<T>.runAsync(@NonNull Runnable runnable, @NonNull Executor executor) AsyncOperation<T>.supplyAsync(@NonNull AsyncOperation.Supplier<U> supplier, @NonNull Executor executor) AsyncOperation<T>.supplyAsync(@NonNull AsyncOperation.Supplier<U> supplier) AsyncOperation<T>.thenAccept(@NonNull ResultConsumer<? super T> action) AsyncOperation<T>.thenAcceptAsync(@NonNull ResultConsumer<? super T> action, @NonNull Executor executor) AsyncOperation<T>.thenAcceptAsync(@NonNull ResultConsumer<? super T> action) AsyncOperation<T>.thenRun(@NonNull Runnable action) AsyncOperation<T>.thenRunAsync(@NonNull Runnable action, @NonNull Executor executor) AsyncOperation<T>.thenRunAsync(@NonNull Runnable action) AsyncOperation<T>.whenComplete(@NonNull AsyncOperation.ResultBiConsumer<? super T, ? super Throwable> action) AsyncOperation<T>.whenCompleteAsync( @NonNull AsyncOperation.ResultBiConsumer<? super T, ? super Throwable> action, @NonNull Executor executor) AsyncOperation<T>.whenCompleteAsync(@NonNull AsyncOperation.ResultBiConsumer<? super T, ? super Throwable> action)

Method Details

progress

public abstract Event<>, P> progress()

This event is fired when there is progress towards the completion of the asynchronous operation.

Returns:

The event subscription

Applies to