public static final class AutoClosableProcess.AutoClosableProcessBuilder extends Object
Modifier and Type | Method and Description |
---|---|
void |
runBlocking() |
void |
runBlocking(java.time.Duration timeout) |
void |
runBlockingWithRetry(int maxRetries,
java.time.Duration attemptTimeout,
java.time.Duration globalTimeout) |
AutoClosableProcess |
runNonBlocking() |
AutoClosableProcess.AutoClosableProcessBuilder |
setStderrProcessor(java.util.function.Consumer<String> stderrProcessor) |
AutoClosableProcess.AutoClosableProcessBuilder |
setStdInputs(String... inputLines) |
AutoClosableProcess.AutoClosableProcessBuilder |
setStdoutProcessor(java.util.function.Consumer<String> stdoutProcessor) |
public AutoClosableProcess.AutoClosableProcessBuilder setStdoutProcessor(java.util.function.Consumer<String> stdoutProcessor)
public AutoClosableProcess.AutoClosableProcessBuilder setStderrProcessor(java.util.function.Consumer<String> stderrProcessor)
public AutoClosableProcess.AutoClosableProcessBuilder setStdInputs(String... inputLines)
public void runBlocking() throws IOException
IOException
public void runBlocking(java.time.Duration timeout) throws IOException
IOException
public void runBlockingWithRetry(int maxRetries, java.time.Duration attemptTimeout, java.time.Duration globalTimeout) throws IOException
IOException
public AutoClosableProcess runNonBlocking() throws IOException
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.