Created
February 3, 2022 03:19
-
-
Save wenqiglantz/e8dbf4bd7ac4bdb00bfee41294f56ff2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
public Customizer<ReactiveResilience4JCircuitBreakerFactory> customerServiceCusomtizer() { | |
return factory -> { | |
factory.configure(builder -> builder | |
.timeLimiterConfig(TimeLimiterConfig.custom().timeoutDuration(Duration.ofSeconds(2)).build()) | |
.circuitBreakerConfig(CircuitBreakerConfig.ofDefaults()), "customer-service"); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment