Condividi tramite


AsyncOperationWithProgress<T,P> Classe

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

Parametri di tipo

T
P

Tipo di informazioni sullo stato di avanzamento

public class AsyncOperationWithProgress<T,P> extends AsyncOperation

Versione di AsyncOperation in grado di fornire lo stato di avanzamento tramite l'evento Progress.

Riepilogo dei metodi

Modificatore e tipo Metodo e descrizione
abstract Event<AsyncOperationWithProgress<T, P>, P> progress()

Questo evento viene generato quando viene eseguito lo stato di avanzamento verso il completamento dell'operazione asincrona.

Membri ereditati

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)

Dettagli metodo

progress

public abstract Event, P> progress()

Questo evento viene generato quando viene eseguito lo stato di avanzamento verso il completamento dell'operazione asincrona.

Restituisce:

Sottoscrizione di eventi

Si applica a