Class AbortableHolder

    • Constructor Summary

      Constructors 
      Constructor Description
      AbortableHolder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void abort()
      Cause any other implementing threads to terminate fairly quickly, signalling abnormal termination to its instigator, if necessary.
      void add​(Abortable a)  
      void remove​(Abortable a)  
      void start()
      Cause any other stopped threads to start.
      void stop()
      Cause any other implementing threads to stop temporarily.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbortableHolder

        public AbortableHolder()
    • Method Detail

      • add

        public void add​(Abortable a)
        Parameters:
        a - - abortable to hold
      • remove

        public void remove​(Abortable a)
        Parameters:
        a - - abortable to remove (once) if held
      • abort

        public void abort()
                   throws java.lang.Exception
        Description copied from interface: Abortable
        Cause any other implementing threads to terminate fairly quickly, signalling abnormal termination to its instigator, if necessary.

        Implementations of this method must be thread-safe.

        Specified by:
        abort in interface Abortable
        Throws:
        java.lang.Exception
      • start

        public void start()
                   throws java.lang.Exception
        Description copied from interface: Abortable
        Cause any other stopped threads to start.

        Implementations of this method must be thread-safe.

        Specified by:
        start in interface Abortable
        Throws:
        java.lang.Exception
      • stop

        public void stop()
                  throws java.lang.Exception
        Description copied from interface: Abortable
        Cause any other implementing threads to stop temporarily.

        Implementations of this method must be thread-safe.

        Specified by:
        stop in interface Abortable
        Throws:
        java.lang.Exception