Interface CircuitBreakerFinalBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      io.github.resilience4j.circuitbreaker.CircuitBreaker build()
      Create a new circuit breaker instance.
      <U> U wrap​(U target)
      Wrap target with a circuit breaker
    • Method Detail

      • 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.