Uses of Interface
io.github.resilience4j.core.functions.CheckedSupplier
Packages that use CheckedSupplier
-
Uses of CheckedSupplier in io.github.resilience4j.core
Methods in io.github.resilience4j.core that return CheckedSupplierModifier and TypeMethodDescriptionstatic <T,R> CheckedSupplier <R> CheckedFunctionUtils.andThen(CheckedSupplier<T> supplier, CheckedBiFunction<T, Throwable, R> handler) Returns a composed supplier that first applies the supplier and then applies BiFunctionafterto the result.static <T> CheckedSupplier<T> CheckedFunctionUtils.recover(CheckedSupplier<T> supplier, CheckedFunction<Throwable, T> exceptionHandler) Returns a composed supplier that first executes the supplier and optionally recovers from an exception.static <X extends Throwable, T>
CheckedSupplier<T> CheckedFunctionUtils.recover(CheckedSupplier<T> supplier, Class<X> exceptionType, CheckedFunction<Throwable, T> exceptionHandler) Returns a composed supplier that first executes the supplier and optionally recovers from an exception.static <T> CheckedSupplier<T> CheckedFunctionUtils.recover(CheckedSupplier<T> supplier, Predicate<T> resultPredicate, CheckedFunction<T, T> resultHandler) Returns a composed supplier that first executes the supplier and optionally recovers from a specific result.static <T> CheckedSupplier<T> CheckedFunctionUtils.recover(CheckedSupplier<T> supplier, List<Class<? extends Throwable>> exceptionTypes, CheckedFunction<Throwable, T> exceptionHandler) Returns a composed supplier that first executes the supplier and optionally recovers from an exception.Methods in io.github.resilience4j.core with parameters of type CheckedSupplierModifier and TypeMethodDescriptionstatic <T,R> CheckedSupplier <R> CheckedFunctionUtils.andThen(CheckedSupplier<T> supplier, CheckedBiFunction<T, Throwable, R> handler) Returns a composed supplier that first applies the supplier and then applies BiFunctionafterto the result.static <T> CheckedSupplier<T> CheckedFunctionUtils.recover(CheckedSupplier<T> supplier, CheckedFunction<Throwable, T> exceptionHandler) Returns a composed supplier that first executes the supplier and optionally recovers from an exception.static <X extends Throwable, T>
CheckedSupplier<T> CheckedFunctionUtils.recover(CheckedSupplier<T> supplier, Class<X> exceptionType, CheckedFunction<Throwable, T> exceptionHandler) Returns a composed supplier that first executes the supplier and optionally recovers from an exception.static <T> CheckedSupplier<T> CheckedFunctionUtils.recover(CheckedSupplier<T> supplier, Predicate<T> resultPredicate, CheckedFunction<T, T> resultHandler) Returns a composed supplier that first executes the supplier and optionally recovers from a specific result.static <T> CheckedSupplier<T> CheckedFunctionUtils.recover(CheckedSupplier<T> supplier, List<Class<? extends Throwable>> exceptionTypes, CheckedFunction<Throwable, T> exceptionHandler) Returns a composed supplier that first executes the supplier and optionally recovers from an exception. -
Uses of CheckedSupplier in io.github.resilience4j.core.functions
Methods in io.github.resilience4j.core.functions that return CheckedSupplierModifier and TypeMethodDescriptiondefault <V> CheckedSupplier<V> CheckedSupplier.andThen(CheckedFunction<? super T, ? extends V> after)