Module bus.socket

Class HashedWheelTimer

java.lang.Object
org.miaixz.bus.socket.metric.HashedWheelTimer
All Implemented Interfaces:
Runnable, SocketTimer

public class HashedWheelTimer extends Object implements SocketTimer, Runnable
哈希计时器
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

  • Constructor Details

    • HashedWheelTimer

      public HashedWheelTimer(ThreadFactory threadFactory)
    • HashedWheelTimer

      public HashedWheelTimer(ThreadFactory threadFactory, long tickDuration, int ticksPerWheel)
      Parameters:
      threadFactory -
      tickDuration - 波动周期,单位:毫秒
      ticksPerWheel - 时间轮大小,自适应成 2^n
  • Method Details