leniu-java-concurrent
Installation
SKILL.md
leniu-tengyun-core 并发处理规范
项目特征
| 特征 | 说明 |
|---|---|
| 包名 | net.xnzn.* |
| 异常类 | LeException(禁止使用 ServiceException) |
| 工具类 | Hutool(CollUtil、StrUtil 等) |
| 分布式锁 | RedisUtil.getLock() / RedisUtil.setNx() |
| JDK | 21(支持虚拟线程,推荐使用标准线程池) |
并行查询
使用CompletableFuture
// 并行查询多个数据源
public XxxVO getData(Long id) {
Related skills