摘要: IntroductionApache Kafkais a distributed publish-subscribe messaging system. It was originally developed at LinkedIn Corporation and later on became a... 阅读全文
posted @ 2014-12-23 18:49 一天不进步,就是退步 阅读(598) 评论(0) 推荐(0) 编辑
摘要: ByPeter Lawreyhttps://www.voxxed.com/blog/2014/12/how-and-why-unsafe-is-used-in-java/Overviewsun.misc.Unsafe has been in Java from at least as far bac... 阅读全文
posted @ 2014-12-23 18:37 一天不进步,就是退步 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 关于keepalived的详细介绍,请移步本人相关博客:http://wangfeng7399.blog.51cto.com/3518031/1405785功能ip地址安装软件主redis10.13.6.13redis,keepalived从redis10.13.6.16redis,keepaliv... 阅读全文
posted @ 2014-12-23 16:20 一天不进步,就是退步 阅读(388) 评论(0) 推荐(1) 编辑
摘要: // 获取真实IP的方法() public String getIpAddr() { String ip = request.getHeader("x-forwarded-for"); if (ip == null || ip.length() == 0 || "unknown".equals... 阅读全文
posted @ 2014-12-23 15:41 一天不进步,就是退步 阅读(2267) 评论(0) 推荐(0) 编辑
摘要: 一、简介 Exchanger是自jdk1.5起开始提供的工具套件,一般用于两个工作线程之间交换数据。在本文中我将采取由浅入深的方式来介绍分析这个工具类。首先我们来看看官方的api文档中的叙述:A synchronization point at which threads can pair and ... 阅读全文
posted @ 2014-12-23 09:51 一天不进步,就是退步 阅读(11877) 评论(4) 推荐(0) 编辑