mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-06 10:21:54 +00:00
perf[scheduler]: 删除不必要的方法
This commit is contained in:
@@ -25,7 +25,7 @@ public abstract class IdUtils {
|
||||
private static final AtomicInteger ATOMIC_INTEGER = new AtomicInteger(0);
|
||||
|
||||
/**
|
||||
* 本地int的id,如果达到最大值则重新从最小值重新计算
|
||||
* 获取本地int的唯一id,如果达到最大值则重新从最小值重新计算,线程安全
|
||||
*/
|
||||
public static int getLocalIntId() {
|
||||
return ATOMIC_INTEGER.incrementAndGet();
|
||||
|
||||
Reference in New Issue
Block a user