| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < return type of callable T, return type of handler R> Callable | |
| public static < return type of callable T, return type of handler R> Callable | Returns: a function composed of supplier and handlerthe callable callable, BiFunction<T, Throwable, R> the function applied after callable handler)Returns a composed function that first applies the Callable and then applies BiFunction |
| public static < return type of callable T, return type of resultHandler and exceptionHandler R> Callable | Returns: a function composed of supplier and handlerthe callable callable, Function<T, R> the function applied after callable was successful resultHandler, Function<Throwable, R> the function applied after callable has failed exceptionHandler)Returns a composed function that first applies the Callable and then applies either the resultHandler or exceptionHandler. |
| public static < return type of after T> Callable | Returns: a function composed of callable and exceptionHandlerthe callable which should be recovered from a certain exception callable, Function<Throwable, T> the exception handler exceptionHandler)Returns a composed function that first executes the Callable and optionally recovers from an exception. |
| public static < return type of after T> Callable | Returns: a function composed of supplier and exceptionHandlerthe callable callable, Predicate<T> the result predicate resultPredicate, UnaryOperator<T> the result handler resultHandler)Returns a composed Callable that first executes the Callable and optionally recovers from a specific result. |
| public static < return type of after T> Callable | Returns: a function composed of supplier and exceptionHandlerthe callable which should be recovered from a certain exception callable, List<Class<? extends Throwable>> the specific exception types that should be recovered exceptionTypes, Function<Throwable, T> the exception handler exceptionHandler)Returns a composed function that first executes the Callable and optionally recovers from an exception. |
| public static <X extends Throwable, return type of after T> Callable | Returns: a function composed of callable and exceptionHandlerthe callable which should be recovered from a certain exception callable, Class<X> the specific exception type that should be recovered exceptionType, Function<Throwable, T> the exception handler exceptionHandler)Returns a composed function that first executes the Callable and optionally recovers from an exception. |
| CallableUtils | back to summary |
|---|---|
| private CallableUtils() | |
| andThen | back to summary |
|---|---|
| public static <T, R> Callable Returns a composed function that first applies the Callable and then applies the resultHandler. | |
| andThen | back to summary |
|---|---|
| public static <T, R> Callable Returns a composed function that first applies the Callable and then applies BiFunction
| |
| andThen | back to summary |
|---|---|
| public static <T, R> Callable Returns a composed function that first applies the Callable and then applies either the resultHandler or exceptionHandler.
| |
| recover | back to summary |
|---|---|
| public static <T> Callable Returns a composed function that first executes the Callable and optionally recovers from an exception. | |
| recover | back to summary |
|---|---|
| public static <T> Callable Returns a composed Callable that first executes the Callable and optionally recovers from a specific result.
| |
| recover | back to summary |
|---|---|
| public static <T> Callable Returns a composed function that first executes the Callable and optionally recovers from an exception.
| |
| recover | back to summary |
|---|---|
| public static <X extends Throwable, T> Callable Returns a composed function that first executes the Callable and optionally recovers from an exception.
| |