|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.limegroup.gnutella.Pinger
This class continually sends broadcast pings on behalf of an Ultrapeer to update the host caches of both itself and its leaves. This class reduces overall ping and pong traffic because it allows us not to forward pings received from other hosts. Instead, we use pong caching to respond to those pings with cached pongs, and send pings periodically in this class to obtain fresh host data.
Field Summary | |
static int |
PING_INTERVAL
Constant for the number of milliseconds to wait between ping broadcasts. |
Method Summary | |
static Pinger |
instance()
Returns the single Pinger instance. |
void |
run()
Implements the Runnable interface. |
void |
start()
Starts the thread that continually sends broadcast pings on behalf of this node if it's an Ultrapeer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PING_INTERVAL
Method Detail |
public static Pinger instance()
public void start()
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |