Author: toad
Date: 2008-06-13 12:16:58 +0000 (Fri, 13 Jun 2008)
New Revision: 20286
Modified:
branches/db4o/freenet/src/freenet/node/SendableRequest.java
Log:
Pass ClientContext in to chooseKey()
Modified: branches/db4o/freenet/src/freenet/node/SendableRequest.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/SendableRequest.java 2008-06-13
12:16:13 UTC (rev 20285)
+++ branches/db4o/freenet/src/freenet/node/SendableRequest.java 2008-06-13
12:16:58 UTC (rev 20286)
@@ -2,6 +2,7 @@
import com.db4o.ObjectContainer;
+import freenet.client.async.ClientContext;
import freenet.client.async.ClientRequester;
import freenet.support.Logger;
import freenet.support.RandomGrabArray;
@@ -27,7 +28,7 @@
* (but not the key itself, implementors must have a separate queue of
block
* numbers and mapping of block numbers to keys).
* @return An object identifying a specific key. null indicates no keys
available. */
- public abstract Object chooseKey(KeysFetchingLocally keys,
ObjectContainer container);
+ public abstract Object chooseKey(KeysFetchingLocally keys,
ObjectContainer container, ClientContext context);
/** All key identifiers. Including those not currently eligible to be
sent because
* they are on a cooldown queue, requests for them are in progress,
etc. */