Compartilhar via


AsyncOperationWithProgress<T,P> Classe

  • java.lang.Object
    • java.util.concurrent.Future<T>
      • < T>assíncrona
        • com.microsoft.connecteddevices.AsyncOperationWithProgress<T,P>

Parâmetros de tipo

T
P

Tipo de informações de progresso

public class AsyncOperationWithProgress<T,P> extends AsyncOperation

Versão do AsyncOperation que pode fornecer progresso por meio do evento Progress.

Resumo do método

Modificador e tipo Método e descrição
abstract Event<AsyncOperationWithProgress<T, P>, P> progress()

Esse evento é acionado quando há progresso para a conclusão da operação assíncrona.

Membros herdados

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)

Detalhes do método

progress

public abstract Event, P> progress()

Esse evento é acionado quando há progresso para a conclusão da operação assíncrona.

Retornos:

A assinatura do evento

Aplica-se a