public class ConnectionTimeout extends Thread
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ConnectionTimeout(RemoteDesktopClient client,
int timeout) |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
int |
getTimeout() |
void |
interrupt(String message) |
boolean |
isCloseConnectionOnTimeout()
Find out whether the thread is configured to close the connection after
the time is out.
|
void |
reset(String reason) |
void |
resetWithTimeout(int timeout) |
void |
run() |
void |
setCloseConnectionOnTimeout(boolean closeConnectionOnTimeout)
Set the flag controlling whether to close the connection after the time
is out.
|
void |
setDebug(boolean debug)
Set the debug mode on or off.
|
activeCount, checkAccess, 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, yield
public ConnectionTimeout(RemoteDesktopClient client, int timeout)
public void interrupt(String message)
public int getTimeout()
public void resetWithTimeout(int timeout)
public void reset(String reason)
public String getMessage()
public boolean isCloseConnectionOnTimeout()
true
(do close).public void setCloseConnectionOnTimeout(boolean closeConnectionOnTimeout)
true
(do close).closeConnectionOnTimeout
- true to enable connection closing on
timeout or false to disable.public void setDebug(boolean debug)
debug
- true sets debugging on. The default value is false.