public static class ExecutionModes.SameThreadMode extends ExecutionMode
Constructor and Description |
---|
SameThreadMode() |
SameThreadMode(boolean cancelable) |
SameThreadMode(boolean cancelable,
java.lang.String title2,
int timeout) |
SameThreadMode(int timeout) |
SameThreadMode(java.lang.String title2) |
Modifier and Type | Method and Description |
---|---|
int |
getTimeout() |
void |
onTimeout(ProcessHandler processHandler,
java.lang.String commandLineString,
ProcessOutput outputCollected,
java.lang.Throwable invocatorStack)
Invoked on the
processHandler waiting timeout by the execution helper. |
addProcessListener, cancelable, getProcessListeners, getProgressParentComponent, getTitle, getTitle2, inBackGround, setShouldCancelFun, shouldCancelFun, withModalProgress
public SameThreadMode(boolean cancelable, java.lang.String title2, int timeout)
public SameThreadMode(java.lang.String title2)
public SameThreadMode(boolean cancelable)
cancelable
- public SameThreadMode(int timeout)
timeout
- If less than zero it will be ignoredpublic SameThreadMode()
public int getTimeout()
getTimeout
in class ExecutionMode
public void onTimeout(ProcessHandler processHandler, java.lang.String commandLineString, ProcessOutput outputCollected, java.lang.Throwable invocatorStack)
ExecutionMode
processHandler
waiting timeout by the execution helper.onTimeout
in class ExecutionMode
outputCollected
- output collected to the moment of timeout (if any)invocatorStack
- stacktrace from the entrance to ExecutionHelper.createTimeLimitedExecutionProcess(ProcessHandler, ExecutionMode, String)
ExecutionHelper.createTimeLimitedExecutionProcess(ProcessHandler, ExecutionMode, String)