Package VASSAL.chat.node
Class LockWatcher
java.lang.Object
java.lang.Thread
VASSAL.chat.node.LockWatcher
- All Implemented Interfaces:
Runnable
public class LockWatcher extends Thread
Watches for thread lock on a server.
Kills the runtime if unable to establish new connection
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors Constructor Description LockWatcher(long delay, long timeout, int port)
-
Method Summary
Modifier and Type Method Description void
run()
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
LockWatcher
public LockWatcher(long delay, long timeout, int port)- Parameters:
delay
- Time in milliseconds between connection attemptstimeout
- Wait time in milliseconds to establish a new connection before terminating
-
-
Method Details