public class KeepAlive
extends java.lang.Thread
| Constructor and Description |
|---|
KeepAlive(JabberSession session,
int timeout)
Creates a keepalive thread that does NOT run as a daemon thread.
|
KeepAlive(JabberSession session,
int timeout,
boolean isDaemon) |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
shutdown() |
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, yieldpublic KeepAlive(JabberSession session, int timeout)
session - the session that you want to do keep alive pingstimeout - time interval between pings. Must be > 0public KeepAlive(JabberSession session, int timeout, boolean isDaemon)
session - the session that you want to do keep alive pingstimeout - time interval between pings. Must be > 0isDaemon - daemon thread?Copyright © 2001-2005 Echomine. All Rights Reserved.