|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PushEndpointCache
| Method Summary | |
|---|---|
void |
clear()
|
PushEndpoint |
getCached(GUID guid)
Should only be used internally by PushEndpoint implementations. |
void |
overwriteProxies(byte[] guid,
Set<? extends IpPort> newSet)
Sets a new set of proxies overwriting the exiting one. |
void |
overwriteProxies(byte[] guid,
String httpString)
Overwrites the current known push proxies for the host specified by the GUID, using the the proxies as written in the httpString. |
void |
removePushProxy(byte[] bytes,
IpPort pushProxy)
Removes the push proxies from the set of push proxies of the push endpoint in the cache. |
void |
setAddr(byte[] guid,
IpPort addr)
updates the external address of all PushEndpoints for the given guid |
void |
setFWTVersionSupported(byte[] guid,
int version)
Sets the fwt version supported for all PEs pointing to the given client guid. |
GUID |
updateProxiesFor(GUID guid,
PushEndpoint pushEndpoint,
boolean valid)
Adds or removes the given set of ip ports depending on valid. |
| Methods inherited from interface com.limegroup.gnutella.dht.db.PushEndpointService |
|---|
findPushEndpoint, getPushEndpoint |
| Method Detail |
|---|
void clear()
PushEndpoint getCached(GUID guid)
PushEndpoint implementations.
For retrieving a value from the cache use #getPushEndpoint().
void overwriteProxies(byte[] guid,
String httpString)
guid - the guid whose proxies to overwritehttpString - comma-separated list of proxies and possible proxy features
void overwriteProxies(byte[] guid,
Set<? extends IpPort> newSet)
void setAddr(byte[] guid,
IpPort addr)
void setFWTVersionSupported(byte[] guid,
int version)
GUID updateProxiesFor(GUID guid,
PushEndpoint pushEndpoint,
boolean valid)
valid.
valid - if false removes proxies otherwise adds them
void removePushProxy(byte[] bytes,
IpPort pushProxy)
bytes - the bytes of the guid of the push endpointpushProxy - the push proxy to remove
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||