Class VavrDecorators.DecorateCheckedSupplier<T>
java.lang.Object
io.github.resilience4j.decorators.VavrDecorators.DecorateCheckedSupplier<T>
- Enclosing interface:
- VavrDecorators
-
Method Summary
Modifier and TypeMethodDescriptionio.vavr.CheckedFunction0<T>decorate()get()withBulkhead(io.github.resilience4j.bulkhead.Bulkhead bulkhead) withCircuitBreaker(io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) withFallback(io.vavr.CheckedFunction1<Throwable, T> exceptionHandler) withFallback(io.vavr.CheckedFunction2<T, Throwable, T> handler) <X extends Throwable>
VavrDecorators.DecorateCheckedSupplier<T>withFallback(Class<X> exceptionType, io.vavr.CheckedFunction1<Throwable, T> exceptionHandler) withFallback(Predicate<T> resultPredicate, io.vavr.CheckedFunction1<T, T> resultHandler) withFallback(List<Class<? extends Throwable>> exceptionTypes, io.vavr.CheckedFunction1<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)
-
Method Details
-
withCircuitBreaker
public VavrDecorators.DecorateCheckedSupplier<T> withCircuitBreaker(io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker) -
withRetry
public VavrDecorators.DecorateCheckedSupplier<T> withRetry(io.github.resilience4j.retry.Retry retryContext) -
withRateLimiter
public VavrDecorators.DecorateCheckedSupplier<T> withRateLimiter(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter) -
withRateLimiter
public VavrDecorators.DecorateCheckedSupplier<T> withRateLimiter(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter, int permits) -
withCache
public <K> VavrDecorators.DecorateCheckedFunction<K,T> withCache(io.github.resilience4j.cache.Cache<K, T> cache) -
withBulkhead
public VavrDecorators.DecorateCheckedSupplier<T> withBulkhead(io.github.resilience4j.bulkhead.Bulkhead bulkhead) -
withFallback
public VavrDecorators.DecorateCheckedSupplier<T> withFallback(io.vavr.CheckedFunction2<T, Throwable, T> handler) -
withFallback
-
withFallback
-
withFallback
public VavrDecorators.DecorateCheckedSupplier<T> withFallback(io.vavr.CheckedFunction1<Throwable, T> exceptionHandler) -
withFallback
-
decorate
-
get
- Throws:
Throwable
-