Class Decorators.DecorateCheckedSupplier<T>
java.lang.Object
io.github.resilience4j.decorators.Decorators.DecorateCheckedSupplier<T>
- Enclosing interface:
- Decorators
-
Method Summary
Modifier and TypeMethodDescriptionio.github.resilience4j.core.functions.CheckedSupplier<T>decorate()get()withBulkhead(io.github.resilience4j.bulkhead.Bulkhead bulkhead) withCircuitBreaker(io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) withFallback(io.github.resilience4j.core.functions.CheckedBiFunction<T, Throwable, T> handler) withFallback(io.github.resilience4j.core.functions.CheckedFunction<Throwable, T> exceptionHandler) <X extends Throwable>
Decorators.DecorateCheckedSupplier<T>withFallback(Class<X> exceptionType, io.github.resilience4j.core.functions.CheckedFunction<Throwable, T> exceptionHandler) withFallback(Predicate<T> resultPredicate, io.github.resilience4j.core.functions.CheckedFunction<T, T> resultHandler) withFallback(List<Class<? extends Throwable>> exceptionTypes, io.github.resilience4j.core.functions.CheckedFunction<Throwable, T> exceptionHandler) withRateLimiter(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter) withRateLimiter(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter, int permits) withRetry(io.github.resilience4j.retry.Retry retryContext) withTimer(io.github.resilience4j.micrometer.Timer timer)
-
Method Details
-
withTimer
public Decorators.DecorateCheckedSupplier<T> withTimer(io.github.resilience4j.micrometer.Timer timer) -
withCircuitBreaker
public Decorators.DecorateCheckedSupplier<T> withCircuitBreaker(io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) -
withRetry
public Decorators.DecorateCheckedSupplier<T> withRetry(io.github.resilience4j.retry.Retry retryContext) -
withRateLimiter
public Decorators.DecorateCheckedSupplier<T> withRateLimiter(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter) -
withRateLimiter
public Decorators.DecorateCheckedSupplier<T> withRateLimiter(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter, int permits) -
withCache
public <K> Decorators.DecorateCheckedFunction<K,T> withCache(io.github.resilience4j.cache.Cache<K, T> cache) -
withBulkhead
public Decorators.DecorateCheckedSupplier<T> withBulkhead(io.github.resilience4j.bulkhead.Bulkhead bulkhead) -
withFallback
public Decorators.DecorateCheckedSupplier<T> withFallback(io.github.resilience4j.core.functions.CheckedBiFunction<T, Throwable, T> handler) -
withFallback
-
withFallback
-
withFallback
public Decorators.DecorateCheckedSupplier<T> withFallback(io.github.resilience4j.core.functions.CheckedFunction<Throwable, T> exceptionHandler) -
withFallback
-
decorate
-
get
- Throws:
Throwable
-