We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have created an example of fault tolerance using @Fallback annotation with the class approach:
@Fallback
public class RecoverFallback implements FallbackHandler<String> { @Override public String handle(ExecutionContext context) { return "It could be worse"; } }
@GET @Produces(MediaType.TEXT_PLAIN) @Retry(maxRetries = 1) @Fallback(RecoverFallback.class) public String faultTolerance() { maybeFail(); return "Hurrah"; }
But the fallback is never executed. Doing the same but with fallbackMethod property then it works as expected.
fallbackMethod
The text was updated successfully, but these errors were encountered:
MP FT integration - fix FallbackHandler support
f3b6dd0
- resolves quarkusio#2344
mkouba
Successfully merging a pull request may close this issue.
I have created an example of fault tolerance using
@Fallback
annotation with the class approach:But the fallback is never executed. Doing the same but with
fallbackMethod
property then it works as expected.The text was updated successfully, but these errors were encountered: