Package net.schmizz.keepalive
Class KeepAliveRunner
- java.lang.Object
-
- java.lang.Thread
-
- net.schmizz.keepalive.KeepAlive
-
- net.schmizz.keepalive.KeepAliveRunner
-
- All Implemented Interfaces:
java.lang.Runnable
public class KeepAliveRunner extends KeepAlive
-
-
Field Summary
-
Fields inherited from class net.schmizz.keepalive.KeepAlive
conn, keepAliveInterval, log
-
-
Method Summary
Modifier and Type Method Description protected void
doKeepAlive()
int
getMaxAliveCount()
void
setMaxAliveCount(int maxAliveCount)
-
Methods inherited from class net.schmizz.keepalive.KeepAlive
getKeepAliveInterval, getPositiveInterval, run, setKeepAliveInterval
-
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
-
getMaxAliveCount
public int getMaxAliveCount()
-
setMaxAliveCount
public void setMaxAliveCount(int maxAliveCount)
-
doKeepAlive
protected void doKeepAlive() throws TransportException, ConnectionException
- Specified by:
doKeepAlive
in classKeepAlive
- Throws:
TransportException
ConnectionException
-
-