Author: toad
Date: 2008-06-28 17:37:38 +0000 (Sat, 28 Jun 2008)
New Revision: 20851
Modified:
branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java
branches/db4o/freenet/src/freenet/client/async/RegisterMe.java
Log:
comments
Modified:
branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java
2008-06-28 17:32:53 UTC (rev 20850)
+++ branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java
2008-06-28 17:37:38 UTC (rev 20851)
@@ -8,6 +8,8 @@
import freenet.node.SendableRequest;
/**
+ * These must be deleted once the request has been executed. See RegisterMe.
+ *
* When we choose a request on the database thread, if it is persistent, we
store it to the database.
* The reason for this is that we may crash before it completes, in which case
we don't want to lose
* it, and the process of choosing a request is destructive i.e. it will be
removed from the queue
Modified: branches/db4o/freenet/src/freenet/client/async/RegisterMe.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/RegisterMe.java
2008-06-28 17:32:53 UTC (rev 20850)
+++ branches/db4o/freenet/src/freenet/client/async/RegisterMe.java
2008-06-28 17:37:38 UTC (rev 20851)
@@ -4,6 +4,11 @@
import freenet.node.SendableRequest;
+/**
+ * These must be deleted once the request has been registered.
+ * See PersistentChosenRequest.
+ * @author toad
+ */
public class RegisterMe {
final SendableRequest getter;
final ClientRequestSchedulerCore core;