Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
RPCWatchdog() |
| Modifier and Type | Method and Description |
|---|---|
void |
finishTimeout()
Finish a timeout with watchdog (must be called after startTimeout).
|
void |
run()
Wait and kill RPC if timeout is exceeded.
|
void |
startTimeout(int timeout)
Start a timeout with watchdog (must be called before finishTimeout).
|
protected void |
terminate()
Default method to terminate the running RPCActivity process.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic void startTimeout(int timeout)
timeout - watchdog timeout in ms.public void finishTimeout()
public void run()
protected void terminate()
Copyright © 2021. All rights reserved.