public abstract class PollingProcess extends AbstractProcess
waitFor methods poll for SystemProcess.isAlive() method
which should be implemented in the sub classes.
log| Constructor and Description |
|---|
PollingProcess() |
| Modifier and Type | Method and Description |
|---|---|
long |
getIntervalForCheckingFinished() |
void |
setIntervalForCheckingFinished(long intervalForCheckingFinished) |
void |
waitFor()
Causes the current thread to wait, if necessary, until this process has terminated.
|
destroy, destroyForcefully, destroyGracefully, getDescription, toString, waitForclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisAlivepublic long getIntervalForCheckingFinished()
public void setIntervalForCheckingFinished(long intervalForCheckingFinished)
public void waitFor()
throws InterruptedException
SystemProcessThis method returns immediately if the process has already terminated. If the process has not yet terminated, the calling thread will be blocked until the process exits.
InterruptedException - if interrupted.Copyright © 2019 ZeroTurnaround. All rights reserved.