Interface CircuitBreakerFinalBuilder

All Known Subinterfaces:
CircuitBreakerExceptionBuilder<T>
All Known Implementing Classes:
CircuitBreakerBuilder

public interface CircuitBreakerFinalBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    io.github.resilience4j.circuitbreaker.CircuitBreaker
    Create a new circuit breaker instance.
    <U> U
    wrap(U target)
    Wrap target with a circuit breaker
  • Method Details

    • build

      io.github.resilience4j.circuitbreaker.CircuitBreaker build()
      Create a new circuit breaker instance.
      Returns:
      A new CircuitBreaker
    • wrap

      <U> U wrap(U target)
      Wrap target with a circuit breaker
      Type Parameters:
      U - The type of the target
      Parameters:
      target - The target to wrap. Final classes have to implement an interface.
      Returns:
      A proxy object that passes all calls to target, but wraps them in a circuit breaker.