keepalive.keepalive
Class ActiveKeepAliveWithAYT

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--keepalive.keepalive.KeepAlive
              |
              +--keepalive.keepalive.ActiveKeepAliveWithAYT
All Implemented Interfaces:
java.lang.Runnable

public class ActiveKeepAliveWithAYT
extends KeepAlive

Combines the ActiveKeepAlive and AreYouThere. Used with PassiveKeepAliveWithAYT Serves as an example of combining Keep-Alive protocols, as will usually happen in real programs.

See Also:
ActiveKeepAlive, AreYouThere, PassiveKeepAliveWithIHY

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
ActiveKeepAliveWithAYT()
          Create a Keep-Alive object.
ActiveKeepAliveWithAYT(Receiver receiver, Sender sender)
          Create a Keep-Alive object.
 
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

ActiveKeepAliveWithAYT

public ActiveKeepAliveWithAYT(Receiver receiver,
                              Sender sender)
Create a Keep-Alive object.

ActiveKeepAliveWithAYT

public ActiveKeepAliveWithAYT()
Create a Keep-Alive object. Used for dynamic classloading
Method Detail

run

public void run()
Description copied from class: KeepAlive
Require the subclasses to implement run(), to prevent them from using the run() method in class Thread with a null body.
Overrides:
run in class KeepAlive


© 2000 Joshua Fox