|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PongCacher
| Field Summary | |
|---|---|
static int |
EXPIRE_TIME
Constant for the number of seconds to wait before expiring cached pongs. |
static int |
EXPIRE_TIME_LOC
Constant for expiring locale specific pongs |
static int |
NUM_HOPS
Constant for the number of hops to keep track of in our pong cache. |
static int |
NUM_PONGS_PER_HOP
Constant for the number of pongs to store per hop. |
| Method Summary | |
|---|---|
void |
addPong(PingReply pr)
Adds the specified PingReply instance to the cache of pongs. |
List<PingReply> |
getBestPongs(String loc)
Accessor for the Set of cached pongs. |
| Field Detail |
|---|
static final int NUM_PONGS_PER_HOP
static final int NUM_HOPS
static final int EXPIRE_TIME
static final int EXPIRE_TIME_LOC
| Method Detail |
|---|
List<PingReply> getBestPongs(String loc)
void addPong(PingReply pr)
pr - the PingReply to add
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||