From: David ‘Bombe’ Roden Date: Thu, 9 Apr 2009 13:34:17 +0000 (+0200) Subject: Add javadoc. X-Git-Tag: v0.1.1~61 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=403b889946c2be0f8cb5b2ffc86ff31d2095e54b;p=jFCPlib.git Add javadoc. --- diff --git a/src/net/pterodactylus/fcp/highlevel/FcpClient.java b/src/net/pterodactylus/fcp/highlevel/FcpClient.java index bcbc21d..12768f5 100644 --- a/src/net/pterodactylus/fcp/highlevel/FcpClient.java +++ b/src/net/pterodactylus/fcp/highlevel/FcpClient.java @@ -640,6 +640,19 @@ public class FcpClient { return getRequests(global); } + /** + * Returns all currently visible persistent requests. + * + * @param global + * true to return requests from the global queue, + * false 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 getRequests(final boolean global) throws IOException, FcpException { final Map requests = Collections.synchronizedMap(new HashMap()); new ExtendedFcpAdapter() {