public static class Decorators.DecorateCheckedSupplier<T>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
io.vavr.CheckedFunction0<T> |
decorate() |
T |
get() |
Decorators.DecorateCheckedSupplier<T> |
withBulkhead(io.github.resilience4j.bulkhead.Bulkhead bulkhead) |
<K> Decorators.DecorateCheckedFunction<K,T> |
withCache(io.github.resilience4j.cache.Cache<K,T> cache) |
Decorators.DecorateCheckedSupplier<T> |
withCircuitBreaker(io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) |
Decorators.DecorateCheckedSupplier<T> |
withFallback(io.vavr.CheckedFunction1<java.lang.Throwable,T> exceptionHandler) |
Decorators.DecorateCheckedSupplier<T> |
withFallback(io.vavr.CheckedFunction2<T,java.lang.Throwable,T> handler) |
<X extends java.lang.Throwable> |
withFallback(java.lang.Class<X> exceptionType,
io.vavr.CheckedFunction1<java.lang.Throwable,T> exceptionHandler) |
Decorators.DecorateCheckedSupplier<T> |
withFallback(java.util.List<java.lang.Class<? extends java.lang.Throwable>> exceptionTypes,
io.vavr.CheckedFunction1<java.lang.Throwable,T> exceptionHandler) |
Decorators.DecorateCheckedSupplier<T> |
withFallback(java.util.function.Predicate<T> resultPredicate,
io.vavr.CheckedFunction1<T,T> resultHandler) |
Decorators.DecorateCheckedSupplier<T> |
withRateLimiter(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter) |
Decorators.DecorateCheckedSupplier<T> |
withRateLimiter(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter,
int permits) |
Decorators.DecorateCheckedSupplier<T> |
withRetry(io.github.resilience4j.retry.Retry retryContext) |
public Decorators.DecorateCheckedSupplier<T> withCircuitBreaker(io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker)
public Decorators.DecorateCheckedSupplier<T> withRetry(io.github.resilience4j.retry.Retry retryContext)
public Decorators.DecorateCheckedSupplier<T> withRateLimiter(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter)
public Decorators.DecorateCheckedSupplier<T> withRateLimiter(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter, int permits)
public <K> Decorators.DecorateCheckedFunction<K,T> withCache(io.github.resilience4j.cache.Cache<K,T> cache)
public Decorators.DecorateCheckedSupplier<T> withBulkhead(io.github.resilience4j.bulkhead.Bulkhead bulkhead)
public Decorators.DecorateCheckedSupplier<T> withFallback(io.vavr.CheckedFunction2<T,java.lang.Throwable,T> handler)
public Decorators.DecorateCheckedSupplier<T> withFallback(java.util.function.Predicate<T> resultPredicate, io.vavr.CheckedFunction1<T,T> resultHandler)
public Decorators.DecorateCheckedSupplier<T> withFallback(java.util.List<java.lang.Class<? extends java.lang.Throwable>> exceptionTypes, io.vavr.CheckedFunction1<java.lang.Throwable,T> exceptionHandler)
public Decorators.DecorateCheckedSupplier<T> withFallback(io.vavr.CheckedFunction1<java.lang.Throwable,T> exceptionHandler)
public <X extends java.lang.Throwable> Decorators.DecorateCheckedSupplier<T> withFallback(java.lang.Class<X> exceptionType, io.vavr.CheckedFunction1<java.lang.Throwable,T> exceptionHandler)
public io.vavr.CheckedFunction0<T> decorate()
public T get() throws java.lang.Throwable
java.lang.Throwable