Author: nextgens
Date: 2008-08-11 14:26:31 +0000 (Mon, 11 Aug 2008)
New Revision: 21745

Added:
   trunk/freenet/src/freenet/pluginmanager/FredPluginBandwidthIndicator.java
Log:
plugins: create a new interface we will use soon

Added: trunk/freenet/src/freenet/pluginmanager/FredPluginBandwidthIndicator.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/FredPluginBandwidthIndicator.java   
                        (rev 0)
+++ trunk/freenet/src/freenet/pluginmanager/FredPluginBandwidthIndicator.java   
2008-08-11 14:26:31 UTC (rev 21745)
@@ -0,0 +1,17 @@
+/* This code is part of Freenet. It is distributed under the GNU General
+ * Public License, version 2 (or at your option any later version). See
+ * http://www.gnu.org/ for further details of the GPL. */
+package freenet.pluginmanager;
+
+public interface FredPluginBandwidthIndicator {
+
+       /**
+        * @return the reported upstream bit rate in bits per second. -1 if 
it's not available. Blocking.
+        */
+       public int getUpstramMaxBitRate();
+
+       /**
+        * @return the reported downstream bit rate in bits per second. -1 if 
it's not available. Blocking.
+        */
+       public int getDownstreamMaxBitRate();
+}


Reply via email to