GRPC Java 1.6.1 已发布,GRPC 是一个高性能、开源、通用的 RPC 框架,面向移动和 HTTP/2 设计,是由谷歌发布的首款基于 Protocol Buffers 的 RPC 框架,GRPC Java 是 GRPC 的 Java 实现。
GRPC 基于 HTTP/2 标准设计,带来诸如双向流、流控、头部压缩、单 TCP 连接上的多复用请求等特性。这些特性使得其在移动设备上表现更好,更省电且节省空间占用。
主要更新内容:
Android users should no longer need
-keep
s in their ProGuard configuration (#2633)gRPC is no longer using the current Thread’s “context ClassLoader” when searching for transport Providers (#2375). Instead it is using the current class’s ClassLoader. This should not break existing users and work out-of-the-box in a larger number of environments
Fix support for Google AppEngine Java 8 (#3296)
Log netty connection errors at FINE instead of SEVERE (#1768)
Update netty to 4.1.14 and tcnative to 2.0.5 (#3307)
Channel state API is now implemented via
ManagedChannel.getState/notifyWhenStateChanged
. This requires LoadBalancer support; custom LoadBalancers should be updated to callupdateBalancingState()
instead ofupdatePicker()
Referencing CallCredentials is now stable API (#3289). Implementing or consuming CallCredentials is still ExperimentalApi
New method
ClientCallStreamObserver.cancel()
allows clients to cancel RPCs without requiring using an interceptor or Context (#3115)
下载地址: