thrift服务端和客户端实现Nifty.zip
Nifty是facebook公司开源的,基于netty的thrift服务端和客户端实现。
然后使用此包就可以快速发布出基于netty的高效的服务端和客户端代码。
示例:
publicvoidstartServer(){
//Createthehandler
MyService.IfaceserviceInterface=newMyServiceHandler();
//Createtheprocessor
TProcessorprocessor=newMyService.Processor(serviceIn
下载地址
用户评论