Class Decorators.DecorateRunnable

java.lang.Object
io.github.resilience4j.decorators.Decorators.DecorateRunnable
Enclosing interface:
Decorators

public static class Decorators.DecorateRunnable extends Object
  • Field Details

  • Constructor Details

    • DecorateRunnable

      private DecorateRunnable(Runnable runnable)
  • Method Details

    • withCircuitBreaker

      public Decorators.DecorateRunnable withCircuitBreaker(io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker)
    • withRetry

      public Decorators.DecorateRunnable withRetry(io.github.resilience4j.retry.Retry retryContext)
    • withRateLimiter

      public Decorators.DecorateRunnable withRateLimiter(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter)
    • withRateLimiter

      public Decorators.DecorateRunnable withRateLimiter(io.github.resilience4j.ratelimiter.RateLimiter rateLimiter, int permits)
    • withBulkhead

      public Decorators.DecorateRunnable withBulkhead(io.github.resilience4j.bulkhead.Bulkhead bulkhead)
    • withThreadPoolBulkhead

      public Decorators.DecorateCompletionStage<Void> withThreadPoolBulkhead(io.github.resilience4j.bulkhead.ThreadPoolBulkhead threadPoolBulkhead)
    • getCompletionStageSupplier

      private Supplier<CompletionStage<Void>> getCompletionStageSupplier(io.github.resilience4j.bulkhead.ThreadPoolBulkhead threadPoolBulkhead)
    • decorate

      public Runnable decorate()
    • run

      public void run()