public interface DeferredProcessProxy extends ProcessProxy
ProcessProxy with deferred execution.
The process is not actually started till the execute(long) method is called.| Modifier and Type | Method and Description |
|---|---|
void |
complete(long timeout_millis)
wait for the process to complete.
|
java.lang.Integer |
execute(long timeout_millis)
Blocking call to execute the deferred process.
|
void |
setTimeout(long timeout_millis)
Set an automatic timeout for the
DeferredProcessProxy implemented by a thread. |
void |
start()
Start the deferred process
|
getErr, getExit, getOutput, wasTerminatedjava.lang.Integer execute(long timeout_millis)
throws java.lang.Exception
timeout_millis - java.lang.Exceptionvoid start()
void complete(long timeout_millis)
throws java.lang.InterruptedException
timeout_millis - java.lang.InterruptedExceptionvoid setTimeout(long timeout_millis)
DeferredProcessProxy implemented by a thread.
This can be used if the spawning thread is not going to wait for completion.timeout_millis -