Package tigase.server
Class ConnectionManager.Watchdog
- java.lang.Object
-
- java.lang.Thread
-
- tigase.server.ConnectionManager.Watchdog
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
ClusterConnectionManager.Watchdog
- Enclosing class:
- ConnectionManager<IO extends XMPPIOService<?>>
protected class ConnectionManager.Watchdog extends java.lang.ThreadClass looks in all established connections and checks whether any of them is dead by performing either whitspace or XMPP ping. If client fails to respond within defined time then the service is stopped.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWatchdog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longgetDurationSinceLastTransfer(XMPPIOService service)voidrun()voidshutdown()-
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
-
-
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
shutdown
public void shutdown()
-
getDurationSinceLastTransfer
protected long getDurationSinceLastTransfer(XMPPIOService service)
-
-