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

请问使用@DubboReference 如何触发onturn事件呢 #781

Open
sharehe opened this issue Mar 11, 2021 · 0 comments
Open

请问使用@DubboReference 如何触发onturn事件呢 #781

sharehe opened this issue Mar 11, 2021 · 0 comments

Comments

@sharehe
Copy link

sharehe commented Mar 11, 2021

@method注解中用onreturn属性 但是该属性只会设置org.apache.dubbo.config.MethodConfig中的onreturn属性并不会设置其onreturnMethod属性
但是org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter::fireReturnCallback中会进行两个属性的判空呢

if (onReturnMethod == null || onReturnInst == null) {
throw new IllegalStateException("service:" + invoker.getUrl().getServiceKey() + " has a onreturn callback config , but no such " + (onReturnMethod == null ? "method" : "instance") + " found. url:" + invoker.getUrl());
}

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

1 participant