public class InstanceTimeWheelService extends Object
| 构造器和说明 |
|---|
InstanceTimeWheelService() |
public static void schedule(Long uniqueId, Long delayMS, TimerTask timerTask)
uniqueId - 唯一 ID,必须是 snowflake 算法生成的 IDdelayMS - 延迟毫秒数timerTask - 需要执行的目标方法public static TimerFuture fetchTimerFuture(Long uniqueId)
uniqueId - 唯一 IDCopyright © 2023. All rights reserved.