| 限定符和类型 | 字段和说明 |
|---|---|
static HashedWheelTimer |
DEFAULT_TIMER |
| 构造器和说明 |
|---|
HashedWheelTimer(ThreadFactory threadFactory) |
HashedWheelTimer(ThreadFactory threadFactory,
long tickDuration,
int ticksPerWheel) |
public static final HashedWheelTimer DEFAULT_TIMER
public HashedWheelTimer(ThreadFactory threadFactory)
public HashedWheelTimer(ThreadFactory threadFactory, long tickDuration, int ticksPerWheel)
threadFactory - tickDuration - 波动周期,单位:毫秒ticksPerWheel - 时间轮大小,自适应成 2^nCopyright © 2024. All rights reserved.