接口 Timer

  • 所有已知实现类:
    HashedWheelTimer

    public interface Timer
    Schedules TimerTasks for one-time future execution in a background thread.
    • 方法详细资料

      • stop

        Set<Timeout> stop()
        Releases all resources acquired by this Timer and cancels all tasks which were scheduled but not executed yet.
        返回:
        the handles associated with the tasks which were canceled by this method
      • isStop

        boolean isStop()
        the timer is stop
        返回:
        true for stop