Class Stoppable

  • All Implemented Interfaces:
    java.lang.Runnable

    public abstract class Stoppable
    extends java.lang.Object
    implements java.lang.Runnable
    A runnable that can be stopped.
    Since:
    3.2
    Author:
    Eike Stepper
    • Constructor Summary

      Constructors 
      Constructor Description
      Stoppable()  
    • Constructor Detail

      • Stoppable

        public Stoppable()
    • Method Detail

      • isStopped

        public final boolean isStopped()
      • stop

        public final void stop()
      • run

        public final void run()
        Specified by:
        run in interface java.lang.Runnable
      • doRun

        protected abstract void doRun()
                               throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException