com.limegroup.gnutella
Class BypassedResultsCache
java.lang.Object
com.limegroup.gnutella.BypassedResultsCache
public class BypassedResultsCache
- extends Object
Keeps track of possible ips that provide results for
query GUIDs and have not been queried yet.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BypassedResultsCache
public BypassedResultsCache(com.google.inject.Provider<? extends ActivityCallback> callback,
DownloadManager downloadManager)
getQueryLocs
public Set<GUESSEndpoint> getQueryLocs(GUID guid)
- Returns a set of possible query endpoints for the guid or
an empty set if there aren't any.
- Returns:
- the set is owned by the caller and can be modified
addBypassedSource
public boolean addBypassedSource(GUID guid,
GUESSEndpoint endpoint)
- Adds the endpoint to its internal cache and returns true if it
does so.
Copyright © 2009. All Rights Reserved.