Skip to content

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

Description

@sharehe

@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());
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions