| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < return type of after T, R> Supplier | Returns: a function composed of supplier and handlerthe CompletionStage supplier completionStageSupplier, BiFunction<T, Throwable, R> the function applied after supplier handler)Returns a composed CompletionStage that first applies the CompletionStage and then applies BiFunction |
| public static <T> CompletionStage | Returns: a CompletionStage that is recovered from any exception.the completionStage which should be recovered from any exception completionStage, Function<Throwable, T> the function applied after callable has failed exceptionHandler)Returns a CompletionStage that is recovered from any exception. |
| public static <T> CompletionStage | Returns: a CompletionStage that is recovered from a specific exception.the completionStage which should be recovered from a certain exception completionStage, List<Class<? extends Throwable>> the specific exception types that should be recovered exceptionTypes, Function<Throwable, T> the function applied after callable has failed exceptionHandler)Returns a CompletionStage that is recovered from a specific exception. |
| public static <X extends Throwable, T> CompletionStage | Returns: a CompletionStage that is recovered from a specific exception.the completionStage which should be recovered from a certain exception completionStage, Class<X> the specific exception type that should be recovered exceptionType, Function<Throwable, T> the function applied after callable has failed exceptionHandler)Returns a CompletionStage that is recovered from a specific exception. |
| public static <T> Supplier | Returns: a CompletionStage that is recovered from a specific exception.a supplier of the completionStage which should be recovered from a certain exception completionStageSupplier, Function<Throwable, T> the function applied after callable has failed exceptionHandler)Returns a decorated CompletionStage that is recovered from a specific exception. |
| public static <T, X extends Throwable> Supplier | Returns: a CompletionStage that is recovered from a specific exception.a supplier of the completionStage which should be recovered from a certain exception completionStageSupplier, Class<X> the specific exception type that should be recovered exceptionType, Function<Throwable, T> the function applied after callable has failed exceptionHandler)Returns a decorated CompletionStage that is recovered from a specific exception. |
| public static <T> Supplier | Returns: a CompletionStage that is recovered from a specific exception.a supplier of the completionStage which should be recovered from a certain exception completionStageSupplier, List<Class<? extends Throwable>> the specific exception types that should be recovered exceptionTypes, Function<Throwable, T> the function applied after callable has failed exceptionHandler)Returns a decorated CompletionStage that is recovered from a specific exception. |
| public static < return type of after T> CompletionStage | Returns: a function composed of supplier and exceptionHandlerthe completionStage which should be recovered from a certain exception completionStage, Predicate<T> the result predicate resultPredicate, UnaryOperator<T> the result handler resultHandler)Returns a composed CompletionStage that first executes the CompletionStage and optionally recovers from a specific result. |
| public static < return type of after T> Supplier | Returns: a function composed of supplier and exceptionHandlerthe CompletionStage supplier completionStageSupplier, Predicate<T> the result predicate resultPredicate, UnaryOperator<T> the result handler resultHandler)Returns a composed CompletionStage that first executes the CompletionStage and optionally recovers from a specific result. |
| private static <T> void | tryRecover(List<Class<? extends Throwable>> exceptionTypes, Function<Throwable, T> exceptionHandler, CompletableFuture<T> promise, Throwable throwable)
|
| private static <X extends Throwable, T> void | tryRecover(Class<X> exceptionType, Function<Throwable, T> exceptionHandler, CompletableFuture<T> promise, Throwable throwable)
|
| CompletionStageUtils | back to summary |
|---|---|
| private CompletionStageUtils() | |
| andThen | back to summary |
|---|---|
| public static <T, R> Supplier Returns a composed CompletionStage that first applies the CompletionStage and then applies BiFunction
| |
| recover | back to summary |
|---|---|
| public static <T> CompletionStage Returns a CompletionStage that is recovered from any exception.
| |
| recover | back to summary |
|---|---|
| public static <T> CompletionStage Returns a CompletionStage that is recovered from a specific exception.
| |
| recover | back to summary |
|---|---|
| public static <X extends Throwable, T> CompletionStage Returns a CompletionStage that is recovered from a specific exception.
| |
| recover | back to summary |
|---|---|
| public static <T> Supplier Returns a decorated CompletionStage that is recovered from a specific exception.
| |
| recover | back to summary |
|---|---|
| public static <T, X extends Throwable> Supplier Returns a decorated CompletionStage that is recovered from a specific exception.
| |
| recover | back to summary |
|---|---|
| public static <T> Supplier Returns a decorated CompletionStage that is recovered from a specific exception.
| |
| recover | back to summary |
|---|---|
| public static <T> CompletionStage Returns a composed CompletionStage that first executes the CompletionStage and optionally recovers from a specific result.
| |
| recover | back to summary |
|---|---|
| public static <T> Supplier Returns a composed CompletionStage that first executes the CompletionStage and optionally recovers from a specific result.
| |
| tryRecover | back to summary |
|---|---|
| private static <T> void tryRecover(List<Class<? extends Throwable>> exceptionTypes, Function<Throwable, T> exceptionHandler, CompletableFuture<T> promise, Throwable throwable) | |
| tryRecover | back to summary |
|---|---|
| private static <X extends Throwable, T> void tryRecover(Class<X> exceptionType, Function<Throwable, T> exceptionHandler, CompletableFuture<T> promise, Throwable throwable) | |