Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module : java.base - Package : java.util.concurrent
Version documentée : Java SE 17

Interface « CompletionStage<T> »

Informations générales

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes concrètes Méthodes abstraites Méthodes dépréciées
QualificateursType de retourPrototype de la méthodeDescription
public abstract CompletionStage<java.lang.Void> acceptEither( CompletionStage<? extends T> other, Consumer<? super T> action )
public abstract CompletionStage<java.lang.Void> acceptEitherAsync( CompletionStage<? extends T> other, Consumer<? super T> action )
public abstract CompletionStage<java.lang.Void> acceptEitherAsync( CompletionStage<? extends T> other, Consumer<? super T> action, Executor executor )
public abstract <U> CompletionStage<U> applyToEither( CompletionStage<? extends T> other, Function<? super T, U> fn )
public abstract <U> CompletionStage<U> applyToEitherAsync( CompletionStage<? extends T> other, Function<? super T, U> fn, Executor executor )
public abstract <U> CompletionStage<U> applyToEitherAsync( CompletionStage<? extends T> other, Function<? super T, U> fn )
public abstract CompletionStage<T> exceptionally( Function<java.lang.Throwable, ? extends T> fn )
public default CompletionStage<T> exceptionallyAsync( Function<java.lang.Throwable, ? extends T> fn )
public default CompletionStage<T> exceptionallyAsync( Function<java.lang.Throwable, ? extends T> fn, Executor executor )
public default CompletionStage<T> exceptionallyCompose( Function<java.lang.Throwable, ? extends java.util.concurrent.CompletionStage<T>> fn )
public default CompletionStage<T> exceptionallyComposeAsync( Function<java.lang.Throwable, ? extends java.util.concurrent.CompletionStage<T>> fn, Executor executor )
public default CompletionStage<T> exceptionallyComposeAsync( Function<java.lang.Throwable, ? extends java.util.concurrent.CompletionStage<T>> fn )
public abstract <U> CompletionStage<U> handle( BiFunction<? super T, java.lang.Throwable, ? extends U> fn )
public abstract <U> CompletionStage<U> handleAsync( BiFunction<? super T, java.lang.Throwable, ? extends U> fn, Executor executor )
public abstract <U> CompletionStage<U> handleAsync( BiFunction<? super T, java.lang.Throwable, ? extends U> fn )
public abstract CompletionStage<java.lang.Void> runAfterBoth( CompletionStage<?> other, Runnable action )
public abstract CompletionStage<java.lang.Void> runAfterBothAsync( CompletionStage<?> other, Runnable action, Executor executor )
public abstract CompletionStage<java.lang.Void> runAfterBothAsync( CompletionStage<?> other, Runnable action )
public abstract CompletionStage<java.lang.Void> runAfterEither( CompletionStage<?> other, Runnable action )
public abstract CompletionStage<java.lang.Void> runAfterEitherAsync( CompletionStage<?> other, Runnable action )
public abstract CompletionStage<java.lang.Void> runAfterEitherAsync( CompletionStage<?> other, Runnable action, Executor executor )
public abstract CompletionStage<java.lang.Void> thenAccept( Consumer<? super T> action )
public abstract CompletionStage<java.lang.Void> thenAcceptAsync( Consumer<? super T> action )
public abstract CompletionStage<java.lang.Void> thenAcceptAsync( Consumer<? super T> action, Executor executor )
public abstract <U> CompletionStage<java.lang.Void> thenAcceptBoth( CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action )
public abstract <U> CompletionStage<java.lang.Void> thenAcceptBothAsync( CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action, Executor executor )
public abstract <U> CompletionStage<java.lang.Void> thenAcceptBothAsync( CompletionStage<? extends U> other, BiConsumer<? super T, ? super U> action )
public abstract <U> CompletionStage<U> thenApply( Function<? super T, ? extends U> fn )
public abstract <U> CompletionStage<U> thenApplyAsync( Function<? super T, ? extends U> fn, Executor executor )
public abstract <U> CompletionStage<U> thenApplyAsync( Function<? super T, ? extends U> fn )
public abstract <U, V> CompletionStage<V> thenCombine( CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn )
public abstract <U, V> CompletionStage<V> thenCombineAsync( CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn, Executor executor )
public abstract <U, V> CompletionStage<V> thenCombineAsync( CompletionStage<? extends U> other, BiFunction<? super T, ? super U, ? extends V> fn )
public abstract <U> CompletionStage<U> thenCompose( Function<? super T, ? extends java.util.concurrent.CompletionStage<U>> fn )
public abstract <U> CompletionStage<U> thenComposeAsync( Function<? super T, ? extends java.util.concurrent.CompletionStage<U>> fn, Executor executor )
public abstract <U> CompletionStage<U> thenComposeAsync( Function<? super T, ? extends java.util.concurrent.CompletionStage<U>> fn )
public abstract CompletionStage<java.lang.Void> thenRun( Runnable action )
public abstract CompletionStage<java.lang.Void> thenRunAsync( Runnable action )
public abstract CompletionStage<java.lang.Void> thenRunAsync( Runnable action, Executor executor )
public abstract CompletableFuture<T> toCompletableFuture()
public abstract CompletionStage<T> whenComplete( BiConsumer<? super T, ? super java.lang.Throwable> action )
public abstract CompletionStage<T> whenCompleteAsync( BiConsumer<? super T, ? super java.lang.Throwable> action, Executor executor )
public abstract CompletionStage<T> whenCompleteAsync( BiConsumer<? super T, ? super java.lang.Throwable> action )