public class AutoClosableProcess extends Object implements AutoCloseable
Process
when exiting a try-with-resources statement.Constructor and Description |
---|
AutoClosableProcess(Process process) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static void |
runBlocking(String step,
java.time.Duration timeout,
String... commands) |
static void |
runBlocking(String step,
String... commands) |
static AutoClosableProcess |
runNonBlocking(String step,
String... commands) |
public AutoClosableProcess(Process process)
public static AutoClosableProcess runNonBlocking(String step, String... commands) throws IOException
IOException
public static void runBlocking(String step, String... commands) throws IOException
IOException
public static void runBlocking(String step, java.time.Duration timeout, String... commands) throws IOException
IOException
public void close() throws IOException
close
in interface AutoCloseable
IOException
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.