Class TimerTask

    • Method Detail

      • cancel

        public boolean cancel()
        Cancels this timer task. See java.util.TimerTask.cancel for a detailed description of cancel.
        Overrides:
        cancel in class TimerTask
        Returns:
        true if this timer task is scheduled to run once and never ran or is scheduled for repeated execution. Returns false if this task was scheduled to run once and was executed, if this task was never scheduled or if this task is already canceled.
      • run

        public void run()
        Tells the listener that this timer has expired.

        Note: Do not call this method! This method is part of java.util.TimerTask and should be called by java.util.Timer only.

        Specified by:
        run in interface Runnable
        Specified by:
        run in class TimerTask