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 Summary

    Modifier and Type
    Method
    Description
    void
    stop(Process process)
    Stops a given sub process.
  • Method Details

    • stop

      void stop(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).