Class TerminableRunnable

    • Method Detail

      • doRun

        protected abstract void doRun()
      • run

        public final void run()
        Specified by:
        run in interface Runnable
      • blockTillTerminated

        public void blockTillTerminated()
        Unschedule next launched, and wait for the current task to complete before closing it.
      • isUnschedule

        public boolean isUnschedule()
      • unscheduleTask

        public void unscheduleTask()
        Unschedule task if active, and cancel thread to inform it must be interrupted in a proper way.