2017年3月15日

容器打印

摘要: 1 public class PrintContainers { 2 3 static Collection fill(Collection collection) { 4 collection.add("rat"); 5 collection.add("cat"); 6 collection.add("dog"); 7 ... 阅读全文

posted @ 2017-03-15 18:12 AlphaGo1号 阅读(90) 评论(0) 推荐(0) 编辑

Spring初始化过程

摘要: 1、org.springframework.web.context.ContextLoaderListener web.xml中的listener节点2、ServletContext 容器以<context-param>键值对的方式初始化Servlet参数3、过滤器Filter 容器会读取<filt 阅读全文

posted @ 2017-03-15 14:53 AlphaGo1号 阅读(303) 评论(0) 推荐(0) 编辑

最简实例说明wait、notify、notifyAll的使用方法

摘要: http://note.youdao.com/noteshare?id=ad71a6a78571c70f1c308dcda792cebf wait()、notify()、notifyAll()是三个定义在Object类里的方法,可以用来控制线程的状态。 这三个方法最终调用的都是jvm级的native 阅读全文

posted @ 2017-03-15 14:51 AlphaGo1号 阅读(137) 评论(0) 推荐(0) 编辑

ActiveMQ 使用binlog的事务冲突问题

摘要: http://note.youdao.com/noteshare?id=16aa7ea15bb5ef0ff2bc57a7112e0923 阅读全文

posted @ 2017-03-15 14:42 AlphaGo1号 阅读(83) 评论(0) 推荐(0) 编辑

死磕 Fragment 的生命周期

摘要: http://blog.csdn.net/melodev/article/details/53406019 阅读全文

posted @ 2017-03-15 14:38 AlphaGo1号 阅读(82) 评论(0) 推荐(0) 编辑

權力遊戲壮丽景色

摘要: http://note.youdao.com/noteshare?id=e0746b12ef2ad01502f726d029d7c487 阅读全文

posted @ 2017-03-15 14:36 AlphaGo1号 阅读(62) 评论(0) 推荐(0) 编辑

KAFKA分布式消息系统-zyd_cu-ChinaUnix博客

摘要: Kafka[1]是linkedin用于日志处理的分布式消息队列,linkedin的日志数据容量大,但对可靠性要求不高,其日志数据主要包括用户行为(登录、浏览、点击、分享、喜欢)以及系统运行日志(CPU、内存、磁盘、网络、系统及进程状态)。 当前很多的消息队列服务提供可靠交付保证,并默认是即时消费(不 阅读全文

posted @ 2017-03-15 14:33 AlphaGo1号 阅读(185) 评论(0) 推荐(0) 编辑

TreadLocal

摘要: http://qifuguang.me/2015/09/02/[Java%E5%B9%B6%E5%8F%91%E5%8C%85%E5%AD%A6%E4%B9%A0%E4%B8%83]%E8%A7%A3%E5%AF%86ThreadLocal/ 阅读全文

posted @ 2017-03-15 14:11 AlphaGo1号 阅读(100) 评论(0) 推荐(0) 编辑

一致性hash算法分析

摘要: http://note.youdao.com/noteshare?id=798b118db54a829f26627587e5f48cef http://note.youdao.com/noteshare?id=798b118db54a829f26627587e5f48cef 阅读全文

posted @ 2017-03-15 11:40 AlphaGo1号 阅读(85) 评论(0) 推荐(0) 编辑

找出100以内的素数

摘要: for (int i = 1; i < 100; i++) { int j = 2; while (j < i) { if (i % j == 0) { break; } if (j == (i - 1)) System.out.println(i + "is prem:"); j++; } } 阅读全文

posted @ 2017-03-15 11:03 AlphaGo1号 阅读(130) 评论(0) 推荐(0) 编辑

深入分析volatile实现原理

摘要: 转载自cmsblogs-chenssy ,原文地址http://cmsblogs.com/?p=2092 通过前面一章我们了解了synchronized是一个重量级的锁,虽然JVM对它做了很多优化,而下面介绍的volatile则是轻量级的synchronized。如果一个变量使用volatile,则 阅读全文

posted @ 2017-03-15 10:38 AlphaGo1号 阅读(140) 评论(0) 推荐(0) 编辑

String,StringBuilder的可变性

摘要: 阅读全文

posted @ 2017-03-15 10:30 AlphaGo1号 阅读(106) 评论(0) 推荐(0) 编辑

导航