Navigation Menu

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

Handle clientTimeout attribute in GenericContext #349

Closed
caojie09 opened this issue Oct 31, 2018 · 0 comments
Closed

Handle clientTimeout attribute in GenericContext #349

caojie09 opened this issue Oct 31, 2018 · 0 comments
Milestone

Comments

@caojie09
Copy link
Contributor

Your question

There are two methods about GenericContext in GenericService:

public interface GenericService {
    /**
     * 支持参数类型无法在类加载器加载情况的泛化调用
     *
     * @param methodName 调用方法名
     * @param argTypes   参数类型
     * @param args       方法参数,参数类型支持GenericObject
     * @param context    上下文,传递超时以及LDC相关信息
     * @return 除了JDK等内置类型,其它对象是GenericObject类型
     * @deprecated Use RpcInvokeContext instead of GenericContext
     */
    @Deprecated
    Object $genericInvoke(String methodName, String[] argTypes, Object[] args, GenericContext context);

    /**
     * 支持参数类型无法在类加载器加载情况的泛化调用
     *
     * @param methodName 调用方法名
     * @param argTypes   参数类型
     * @param args       方法参数,参数类型支持GenericObject
     * @param clazz      返回类型
     * @param context    GenericContext
     * @return 返回指定的T类型返回对象
     * @deprecated Use RpcInvokeContext instead of GenericContext
     */
    @Deprecated
    <T> T $genericInvoke(String methodName, String[] argTypes, Object[] args, Class<T> clazz, GenericContext context);
}

They are deprecated,but I think we should still handle this paramter.

Your scenes

Your advice

Environment

  • SOFARPC version: 5.4.7
  • JVM version (e.g. java -version): JDK 8
  • OS version (e.g. uname -a): Linux
  • Maven version: Maven 3
  • IDE version:
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