07 2020 档案

摘要:Optional of 与 ofNullable 的区别 /** * Returns an {@code Optional} with the specified present non-null value. * * @param <T> the class of the value * @par 阅读全文
posted @ 2020-07-30 12:31 amberbar 阅读(123) 评论(0) 推荐(0)
摘要:public class CustomerDemo { public static void main(String[] args) { /** * 要求一个线程增加,一个线程减少 */ Number number= new Number(); new Thread(() -> { for (int 阅读全文
posted @ 2020-07-12 23:26 amberbar 阅读(529) 评论(0) 推荐(1)
摘要:转暂存: https://blog.csdn.net/weixin_33854644/article/details/92439971 阅读全文
posted @ 2020-07-09 21:33 amberbar 阅读(132) 评论(0) 推荐(0)
摘要:Mongodb Sharded Cluster 分片集群 1 分片概念 分片(sharding)是一种跨多台机器分布数据的方法, MongoDB使用分片来支持具有非常大的数据集和高吞吐量操作的部署。 2 分片集群包含的组件 MongoDB分片群集包含以下组件: 分片(存储):每个分片包含分片数据的子 阅读全文
posted @ 2020-07-01 10:08 amberbar 阅读(485) 评论(0) 推荐(0)