摘要: http://blog.csdn.net/thomas0yang/article/details/412112591、RPC框架概述1.1 RPC(Remote Procedure Call Protocol)—— 远程过程调用协议,它是一种通过网络从远程计算机程序上请求服务,而不需要了解底层网络技... 阅读全文
posted @ 2015-03-25 15:42 xiongjianjun 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 总结单例的几种写法:1 静态内部类,这种方式利用了classloder的机制来保证初始化instance时只有一个线程,支持延迟加载和线程安全public class CommonRpcHttpServer{ private static class SingletonHolder { stat... 阅读全文
posted @ 2015-03-25 11:23 xiongjianjun 阅读(96) 评论(0) 推荐(0) 编辑