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
describe your use scenes (why need this feature)
from sofastack/sofa-rpc-boot-projects#135 (comment)
In sofa-rpc-boot-project and sofa-boot, the user cannot register SetterFactory and FallbackFactory with ConsumerConfig.
So we provide some global settings that allow the user to create a single factory and loaded by all consumers, for example:
public class GlobalFallbackFactory implements FallbackFactory { @Override public Object create(FallbackContext context) { String interface = context.getRequest().getInterfaceId(); if ("xxx.a.Service".equals(interface)) { return new ServiceAFallback(); } if ("xxx.b.Service".equals(interface)) { return new ServiceBFallback(); } return null; } } SofaHystrixConfig.registerGlobalFallbackFactory(new GlobalFallbackFactory());
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Your scenes
describe your use scenes (why need this feature)
from sofastack/sofa-rpc-boot-projects#135 (comment)
In sofa-rpc-boot-project and sofa-boot, the user cannot register SetterFactory and FallbackFactory with ConsumerConfig.
So we provide some global settings that allow the user to create a single factory and loaded by all consumers, for example:
The text was updated successfully, but these errors were encountered: