@SuppressWarnings("unchecked")
public static <T extends Service> T newServiceStub(Class<T> service, RpcChannel channel)
throws Exception {
return (T)Methods.call(service, null, "newStub",
new Class[]{ RpcChannel.class }, new Object[]{ channel });
}
ProtobufUtil.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:DominoHBase
作者:
评论列表
文章目录