Interface Abortable

  • All Known Implementing Classes:
    AbortableHolder

    public interface Abortable
    Classes whose instances can be aborted, stopped and started (from other threads) implement this interface.
    • Method Summary

      All Methods Instance Methods Abstract 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 start()
      Cause any other stopped threads to start.
      void stop()
      Cause any other implementing threads to stop temporarily.
    • Method Detail

      • abort

        void abort()
            throws java.lang.Exception
        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.

        Throws:
        java.lang.Exception
      • stop

        void stop()
           throws java.lang.Exception
        Cause any other implementing threads to stop temporarily.

        Implementations of this method must be thread-safe.

        Throws:
        java.lang.Exception
      • start

        void start()
            throws java.lang.Exception
        Cause any other stopped threads to start.

        Implementations of this method must be thread-safe.

        Throws:
        java.lang.Exception