public abstract class KeepAlive
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
protected ConnectionImpl |
conn |
protected int |
keepAliveInterval |
protected org.slf4j.Logger |
log |
| Modifier | Constructor and Description |
|---|---|
protected |
KeepAlive(ConnectionImpl conn,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doKeepAlive() |
int |
getKeepAliveInterval() |
protected int |
getPositiveInterval() |
void |
run() |
void |
setKeepAliveInterval(int keepAliveInterval) |
activeCount, checkAccess, clone, 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, yieldprotected final org.slf4j.Logger log
protected final ConnectionImpl conn
protected int keepAliveInterval
protected KeepAlive(ConnectionImpl conn, java.lang.String name)
public int getKeepAliveInterval()
public void setKeepAliveInterval(int keepAliveInterval)
protected int getPositiveInterval()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadprotected abstract void doKeepAlive()
throws TransportException,
ConnectionException