Class Decorators.DecorateSupplier<T>
java.lang.Object
io.github.resilience4j.decorators.Decorators.DecorateSupplier<T>
- Enclosing interface:
- Decorators
-
Method Summary
Modifier and TypeMethodDescriptiondecorate()get()withBulkhead(io.github.resilience4j.bulkhead.Bulkhead bulkhead) <K> Decorators.DecorateFunction<K,T> withCircuitBreaker(io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) withFallback(BiFunction<T, Throwable, T> handler) withFallback(Function<Throwable, T> exceptionHandler) withFallback(Predicate<T> resultPredicate, UnaryOperator<T> resultHandler) withFallback(List<Class<? extends Throwable>> exceptionTypes, Function<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) withThreadPoolBulkhead(io.github.resilience4j.bulkhead.ThreadPoolBulkhead threadPoolBulkhead)
-
Method Details
-
withCircuitBreaker
public Decorators.DecorateSupplier<T> withCircuitBreaker(io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) -
withRetry
-
withCache
public <K> Decorators.DecorateFunction<K,T> withCache(io.github.resilience4j.cache.Cache<K, T> cache) -
withRateLimiter
public Decorators.DecorateSupplier<T> withRateLimiter(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter) -
withRateLimiter
public Decorators.DecorateSupplier<T> withRateLimiter(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter, int permits) -
withBulkhead
public Decorators.DecorateSupplier<T> withBulkhead(io.github.resilience4j.bulkhead.Bulkhead bulkhead) -
withFallback
-
withFallback
public Decorators.DecorateSupplier<T> withFallback(Predicate<T> resultPredicate, UnaryOperator<T> resultHandler) -
withFallback
-
withFallback
-
withThreadPoolBulkhead
public Decorators.DecorateCompletionStage<T> withThreadPoolBulkhead(io.github.resilience4j.bulkhead.ThreadPoolBulkhead threadPoolBulkhead) -
decorate
-
get
-