|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--keepalive.keepalive.KeepAlive | +--keepalive.keepalive.ActiveKeepAlive
This ActiveKeepAlive repeatedly sends out dummy messages to see if we get an IOException. (A more sophisticated version might change the frequency of the outgoing messages according to measured network parameters. This Keep-Alive can be used with another ActiveKeepAlive, with a PassiveKeepAlive, or with a NullKeepAlive on the remote side.
PassiveKeepAlive
,
ActiveKeepAlive
,
NullKeepAlive
Fields inherited from class keepalive.keepalive.KeepAlive |
ARE_YOU_THERE, endRequested, I_HEAR_YOU, TIME_BETWEEN_ACTIVE_PROBES |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ActiveKeepAlive()
Used for dynamic classloading |
|
ActiveKeepAlive(Sender sender)
|
Method Summary | |
void |
run()
Require the subclasses to implement run(), to prevent them from using the run() method in class Thread with a null body. |
Methods inherited from class keepalive.keepalive.KeepAlive |
end, endRequested, getDummyString, getReceiver, getSender, getSilentTimeForIncoming, setReceiver, setSender |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ActiveKeepAlive(Sender sender)
sender
- public ActiveKeepAlive()
Method Detail |
public void run()
KeepAlive
run
in class KeepAlive
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |