Package org.zeroturnaround.exec.stop
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
-
Method Details
-
stop
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 (notnull
).
-