idea

摘要: 下载地址 https://www.jetbrains.com/idea/download/other.html 插件 插件本地安装下载地址 https://plugins.jetbrains.com/ 常用插件 Free MyBatis plugin Lombok .ignore Alibaba J 阅读全文
posted @ 2020-01-14 13:15 seesea_bky 阅读(139) 评论(0) 推荐(0)

HashMap

摘要: hash static final int hash(Object key) { int h; //^异或运算 二进制不同时,则为1,相同时为0 比如1010^1100=0110 //>>>无符号右移 不带符号向右移动二进制数,移动后前面统统补0 //hash高16位与自己的低16位异或 retur 阅读全文
posted @ 2020-01-04 23:13 seesea_bky 阅读(138) 评论(0) 推荐(0)

CountDownLatch

摘要: CountDownLatch CountDownLatch 源码 1 import java.util.concurrent.TimeUnit; 2 import java.util.concurrent.locks.AbstractQueuedSynchronizer; 3 4 public cl 阅读全文
posted @ 2019-12-31 14:43 seesea_bky 阅读(136) 评论(0) 推荐(0)

线程池

摘要: 线程池 Executors 封装 线程池(不推荐使用) 直接使用ThreadPoolExecutor ,根据业务需求灵活配置,避免OOM发生的风险。 1 /** 2 * 可缓存线程池 3 * 同时执行的最大线程数是Integer.MAX_VALUE,是高度可伸缩的线程池。可能发生OOM异常。<br/ 阅读全文
posted @ 2019-12-30 11:38 seesea_bky 阅读(139) 评论(0) 推荐(0)

【翻译】Redis SET 以及 分布式锁设计代码实现

摘要: 官网SET命令地址: "SET命令官网地址" Set to hold the string . 设置 保存字符串 If already holds a value, it is overwritten, regardless of its type. 如果 已经存贮一个值,那么值将被覆盖,忽略之前的 阅读全文
posted @ 2019-02-14 13:38 seesea_bky 阅读(575) 评论(0) 推荐(0)