LimeWire Consolidated API

com.limegroup.gnutella
Class BypassedResultsCache

java.lang.Object
  extended by 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.


Constructor Summary
BypassedResultsCache(com.google.inject.Provider<? extends ActivityCallback> callback, DownloadManager downloadManager)
           
 
Method Summary
 boolean addBypassedSource(GUID guid, GUESSEndpoint endpoint)
          Adds the endpoint to its internal cache and returns true if it does so.
 Set<GUESSEndpoint> getQueryLocs(GUID guid)
          Returns a set of possible query endpoints for the guid or an empty set if there aren't any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BypassedResultsCache

public BypassedResultsCache(com.google.inject.Provider<? extends ActivityCallback> callback,
                            DownloadManager downloadManager)
Method Detail

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.


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.