Add javadoc.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 9 Apr 2009 13:34:17 +0000 (15:34 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 9 Apr 2009 13:34:17 +0000 (15:34 +0200)
src/net/pterodactylus/fcp/highlevel/FcpClient.java

index bcbc21d..12768f5 100644 (file)
@@ -640,6 +640,19 @@ public class FcpClient {
                return getRequests(global);
        }
 
+       /**
+        * Returns all currently visible persistent requests.
+        *
+        * @param global
+        *            <code>true</code> to return requests from the global queue,
+        *            <code>false</code> to only show requests from the client-local
+        *            queue
+        * @return All requests
+        * @throws IOException
+        *             if an I/O error occurs
+        * @throws FcpException
+        *             if an FCP error occurs
+        */
        public Collection<Request> getRequests(final boolean global) throws IOException, FcpException {
                final Map<String, Request> requests = Collections.synchronizedMap(new HashMap<String, Request>());
                new ExtendedFcpAdapter() {