摘要:
Apache Curator源码地址:https://github.com/apache/curator Apache Curator是什么? 官方是这样介绍的: Apache Curator is a Java/JVM client library for Apache ZooKeeper, a 阅读全文
摘要:
之前讲HashMap之Put方法操作有提到过扩容操作,扩容简单理解就是原容器不够大了,需要提供一个更大的容器。而JAVA里数组的扩容也没有更高级的办法,就是创建一个新的数组,然后将旧数组的数据拷贝过来。 看一下扩容的详细流程: 流程讲解: 1)计算新数组Table的newCap(容量),newThr 阅读全文