Author: toad
Date: 2009-02-03 20:27:49 +0000 (Tue, 03 Feb 2009)
New Revision: 25513

Added:
   branches/db4o/freenet/src/freenet/node/NullSendableRequestItem.java
   branches/db4o/freenet/src/freenet/node/SendableRequestItem.java
Log:
Missing files


Added: branches/db4o/freenet/src/freenet/node/NullSendableRequestItem.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/NullSendableRequestItem.java         
                (rev 0)
+++ branches/db4o/freenet/src/freenet/node/NullSendableRequestItem.java 
2009-02-03 20:27:49 UTC (rev 25513)
@@ -0,0 +1,11 @@
+package freenet.node;
+
+public class NullSendableRequestItem implements SendableRequestItem {
+
+       public static final SendableRequestItem nullItem = new 
NullSendableRequestItem();
+
+       public void dump() {
+               // Do nothing, we will be GC'ed.
+       }
+
+}

Added: branches/db4o/freenet/src/freenet/node/SendableRequestItem.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/SendableRequestItem.java             
                (rev 0)
+++ branches/db4o/freenet/src/freenet/node/SendableRequestItem.java     
2009-02-03 20:27:49 UTC (rev 25513)
@@ -0,0 +1,16 @@
+package freenet.node;
+
+/**
+ * A SendableRequest may include many SendableRequestItem's.
+ * Typically for requests, these are just an integer indicating which key
+ * to fetch. But for inserts, these will often include the actual data to
+ * insert, or some means of getting it without access to the database.
+ * @author Matthew Toseland <[email protected]> (0xE43DA450)
+ */
+public interface SendableRequestItem {
+
+       /** Called when a request is abandoned. Whether this is called on
+        * a successful request is up to the SendableRequestSender. */
+       public void dump();
+
+}

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to