基于版本jdk1.7.0_80 java.util.concurrent.ScheduledThreadPoolExecutor 代码如下 /* * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * ...
分类:
其他好文 时间:
2017-07-19 19:34:12
阅读次数:
236
基于版本jdk1.7.0_80 java.util.concurrent.DelayQueue 代码如下 /* * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * ...
分类:
其他好文 时间:
2017-07-18 12:00:40
阅读次数:
180
本篇着重讲解的terms聚合,它是按照某个字段中的值来分类: 比如性别有男、女,就会创建两个桶,分别存放男女的信息。默认会搜集doc_count的信息,即记录有多少男生,有多少女生,然后返回给客户端,这样就完成了一个terms得统计。 Terms聚合 { "aggs" : { "genders" : ...
分类:
其他好文 时间:
2017-07-16 20:23:29
阅读次数:
172
基于版本jdk1.7.0_80 java.util.concurrent.ConcurrentLinkedQueue 代码如下 /* * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * ...
分类:
其他好文 时间:
2017-07-14 20:27:43
阅读次数:
213
基于版本jdk1.7.0_80 java.util.concurrent.ArrayBlockingQueue 代码如下 /* * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * ...
分类:
其他好文 时间:
2017-07-13 10:50:10
阅读次数:
221
基于版本jdk1.7.0_80 java.util.concurrent.CyclicBarrier 代码如下 /* * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * ...
分类:
其他好文 时间:
2017-07-12 21:35:27
阅读次数:
255
基于版本jdk1.7.0_80 java.util.concurrent.Semaphore 代码如下 /* * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * ...
分类:
其他好文 时间:
2017-07-12 15:28:52
阅读次数:
180
基于版本jdk1.7.0_80 java.util.concurrent.CountDownLatch 代码如下 /* * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * ...
分类:
其他好文 时间:
2017-07-11 20:58:34
阅读次数:
200
基于版本jdk1.7.0_80 java.util.concurrent.locks.ReentrantLock 代码如下 /* * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * ...
分类:
其他好文 时间:
2017-07-11 00:59:48
阅读次数:
320