Interface ProcessStopper

  • All Known Implementing Classes:
    DestroyProcessStopper, NopProcessStopper

    public interface ProcessStopper
    Abstraction for stopping sub processes.

    This is used in case a process runs too long (timeout is reached) or it's cancelled via Future.cancel(boolean).

    • Method Detail

      • stop

        void stop​(java.lang.Process process)
        Stops a given sub process. It does not wait for the process to actually stop and it has no guarantee that the process terminates.
        Parameters:
        process - sub process being stopped (not null).