Alias for destroy, implemented for java.lang.AutoCloseable.
Alias for destroy, implemented for java.lang.AutoCloseable.
String representation of the pipeline.
Attempt to destroy the ProcessPipeline (gently), via the underlying JVM APIs.
Attempt to destroy the ProcessPipeline (gently), via the underlying JVM APIs. All processes in the pipeline are destroyed.
Force-destroys the ProcessPipeline, via the underlying JVM APIs.
Force-destroys the ProcessPipeline, via the underlying JVM APIs. All processes in the pipeline are force-destroyed.
The exit code of this ProcessPipeline.
The exit code of this ProcessPipeline. Conventionally, 0 exit code represents a successful termination, and non-zero exit code indicates a failure. Throws an exception if the subprocess has not terminated.
If pipefail is set, the exit code is the first non-zero exit code of the pipeline. If no process in the pipeline has a non-zero exit code, the exit code is 0.
Returns true
if the ProcessPipeline is still running and has not terminated.
Returns true
if the ProcessPipeline is still running and has not terminated.
Any process in the pipeline can be alive for the pipeline to be alive.
Wait up to millis
for the ProcessPipeline to terminate all the processes
in pipeline.
Wait up to millis
for the ProcessPipeline to terminate all the processes
in pipeline. By default waits indefinitely; if a time limit is given, explicitly
destroys each process if it has not completed by the time the timeout has occurred.
Wait up to millis
for the ProcessPipeline to terminate, by default waits
indefinitely.
Wait up to millis
for the ProcessPipeline to terminate, by default waits
indefinitely. Returns true
if the ProcessPipeline has terminated by the time
this method returns.
Waits for each process one by one, while aggregating the total time waited. If
timeout has passed before all processes have terminated, returns false
.