Class Decorators.DecorateSupplier<T>

  • Enclosing interface:
    Decorators

    public static class Decorators.DecorateSupplier<T>
    extends java.lang.Object
    • Method Detail

      • withCircuitBreaker

        public Decorators.DecorateSupplier<T> withCircuitBreaker​(io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker)
      • withRateLimiter

        public Decorators.DecorateSupplier<T> withRateLimiter​(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter,
                                                              int permits)
      • withFallback

        public Decorators.DecorateSupplier<T> withFallback​(java.util.function.Predicate<T> resultPredicate,
                                                           java.util.function.UnaryOperator<T> resultHandler)
      • withFallback

        public Decorators.DecorateSupplier<T> withFallback​(java.util.List<java.lang.Class<? extends java.lang.Throwable>> exceptionTypes,
                                                           java.util.function.Function<java.lang.Throwable,​T> exceptionHandler)
      • decorate

        public java.util.function.Supplier<T> decorate()
      • get

        public T get()