会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
星空物语之韵
我想遇到一起奋斗的河南小伙,和你们一起漫步在代码的海洋里远行
博客园
首页
新随笔
联系
订阅
管理
2021年2月5日
redisson锁 tryLock的使用及正确用法
摘要: 方式一RLock lock = redissonClient.getLock("Export:create:" + Context.get().getCorpId());try { if (lock.tryLock(5, 10, TimeUnit.SECONDS)) { //业务处理 } else
阅读全文
posted @ 2021-02-05 13:53 星空物语之韵
阅读(29367)
评论(0)
推荐(3)
编辑
公告