Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Set Circuit Breaker name at Runtime #615

Closed
1 of 2 tasks
yogeshn opened this issue Apr 10, 2023 · 1 comment
Closed
1 of 2 tasks

Unable to Set Circuit Breaker name at Runtime #615

yogeshn opened this issue Apr 10, 2023 · 1 comment

Comments

@yogeshn
Copy link

yogeshn commented Apr 10, 2023

Description

As a:

  • API User (application developer)
  • Specification Implementer

...I need to be able to:

I wanted to create a circuit breaker with a name that can be set at runtime. Is there a Builder which I use to set circuitbreaker name instead of using annotation?

@CircuitBreaker(requestVolumeThreshold = 4, failureRatio = 0.5, delay = 1000)
@CircuitBreakerName("#{hostUrl}")
public Uni<Response> get(HttpHeaders headers, String requestUri, URI hostUrl) throws Exception {
// Some logic
}
@Ladicek
Copy link
Contributor

Ladicek commented Apr 11, 2023

@CircuitBreakerName is a SmallRye Fault Tolerance specific feature which isn't present in the MicroProfile Fault Tolerance specification. Since an issue in SmallRye Fault Tolerance already exists, I'm closing this.

@Ladicek Ladicek closed this as completed Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants