From 226bee64ef8aabd14cc7b16907d519e55112f7db Mon Sep 17 00:00:00 2001 From: dev Date: Tue, 9 Jun 2015 03:44:34 +0000 Subject: [PATCH] Added more variants of isUpdateInProgress to UpdateManager. --- .../src/net/i2p/update/UpdateManager.java | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/core/java/src/net/i2p/update/UpdateManager.java b/core/java/src/net/i2p/update/UpdateManager.java index 0a7086010..88d116743 100644 --- a/core/java/src/net/i2p/update/UpdateManager.java +++ b/core/java/src/net/i2p/update/UpdateManager.java @@ -146,11 +146,28 @@ public interface UpdateManager { public String checkAvailable(UpdateType type, String id, long maxWait); /** - * Is any download in progress? - * Does not include checks. + * Is a router update being downloaded? + * @return true iff router update is being downloaded + * @since 0.9.21 */ public boolean isUpdateInProgress(); + /** + * Is a router update being downloaded? + * @param type the UpdateType of this request + * @return true iff router update is being downloaded + * @since 0.9.21 + */ + public boolean isUpdateInProgress(UpdateType type); + + /** + * Is a router update being downloaded? + * @param type the UpdateType of this request + * @param id of this request + * @return true iff router update is being downloaded + * @since 0.9.21 + */ + public boolean isUpdateInProgress(UpdateType type, String id); /** * Non-blocking. Does not check. * Fails if check or update already in progress.