public class CachedProcessOutputHandler extends BaseProcessOutputHandler
ProcessExecutor.execute(ProcessInfo, ProcessOutputHandler).
This can only be used once since only a single process output is kept for query after
the process is run.BaseProcessOutputHandler.BaseProcessOutput| Constructor and Description |
|---|
CachedProcessOutputHandler() |
| Modifier and Type | Method and Description |
|---|---|
ProcessOutput |
createOutput()
Creates a ProcessOutput to be used by the process executor.
|
BaseProcessOutputHandler.BaseProcessOutput |
getProcessOutput() |
void |
handleOutput(ProcessOutput processOutput)
Handles the output after the process has run.
|
public BaseProcessOutputHandler.BaseProcessOutput getProcessOutput()
@NonNull public ProcessOutput createOutput()
ProcessOutputHandlercreateOutput in interface ProcessOutputHandlercreateOutput in class BaseProcessOutputHandlerpublic void handleOutput(@NonNull
ProcessOutput processOutput)
throws ProcessException
ProcessOutputHandlerProcessExecutor.execute(ProcessInfo, ProcessOutputHandler) returns.processOutput - the process output to handleProcessException