Package net.schmizz.keepalive
Class Heartbeater
- java.lang.Object
-
- java.lang.Thread
-
- net.schmizz.keepalive.KeepAlive
-
- net.schmizz.keepalive.Heartbeater
-
- All Implemented Interfaces:
java.lang.Runnable
final class Heartbeater extends KeepAlive
-
-
Field Summary
-
Fields inherited from class net.schmizz.keepalive.KeepAlive
conn, keepAliveInterval, log
-
-
Constructor Summary
Constructors Constructor Description Heartbeater(ConnectionImpl conn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doKeepAlive()
-
Methods inherited from class net.schmizz.keepalive.KeepAlive
getKeepAliveInterval, isEnabled, 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
-
-
-
-
Constructor Detail
-
Heartbeater
Heartbeater(ConnectionImpl conn)
-
-
Method Detail
-
doKeepAlive
protected void doKeepAlive() throws TransportException
- Specified by:
doKeepAlive
in classKeepAlive
- Throws:
TransportException
-
-