waitForExitMaxMsOrDestroy

public abstract ManagedProcess waitForExitMaxMsOrDestroy(long maxWaitUntilDestroyTimeout)

Waits up to the given timeout for the process to terminate; if still running after the timeout, the process is destroyed. Always returns the current instance for chaining.

Return

this managed process instance (for chaining)

Parameters

maxWaitUntilDestroyTimeout

maximum time to wait in milliseconds before destroying

Throws

if the process was never started or start failed

if interrupted while waiting