Interface Timer.TimerNode

  • Enclosing interface:
    Timer

    public static interface Timer.TimerNode
    An interface implemented by TimerFactory. Code that wants to insert an element in a Timer must allocate a TimerNode. A TimerNode can only appear in only one Timer at a time and at most once in a particular timer.
    • Method Detail

      • cancel

        void cancel()
        Cancel the current request. The TimerNode can be reused by calling a schedule method.
      • isScheduled

        boolean isScheduled()
        Check if this TimerNode is being scheduled.
        Returns:
        the scheduled status flag