Author: toad
Date: 2008-07-29 15:51:54 +0000 (Tue, 29 Jul 2008)
New Revision: 21481
Added:
branches/db4o/freenet/src/freenet/client/TempFetchResult.java
Log:
Doh, missing file (for the shadow buckets code)
Added: branches/db4o/freenet/src/freenet/client/TempFetchResult.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/TempFetchResult.java
(rev 0)
+++ branches/db4o/freenet/src/freenet/client/TempFetchResult.java
2008-07-29 15:51:54 UTC (rev 21481)
@@ -0,0 +1,23 @@
+package freenet.client;
+
+import freenet.support.api.Bucket;
+
+public class TempFetchResult extends FetchResult {
+
+ public final boolean freeWhenDone;
+
+ public TempFetchResult(ClientMetadata dm, Bucket fetched, boolean
freeWhenDone) {
+ super(dm, fetched);
+ this.freeWhenDone = freeWhenDone;
+ }
+
+ /**
+ * If true, the recipient of this object is responsible for freeing the
data.
+ * If false, it is a reference to data held somewhere else, so doesn't
need to be freed.
+ * @return
+ */
+ public boolean freeWhenDone() {
+ return freeWhenDone;
+ }
+
+}