diff options
author | Simon Rettberg | 2015-10-21 18:24:33 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-10-21 18:24:33 +0200 |
commit | 9dcb793ea9225c34b5794eee2e372985c5ceda91 (patch) | |
tree | fd770fe7d724d71875f086c7a4deaf90e8e89863 /dozentenmodul/src/main/java/org/openslx/dozmod/Config.java | |
parent | [client] Make deselection in tables possible when clicking on empty space. (diff) | |
download | tutor-module-9dcb793ea9225c34b5794eee2e372985c5ceda91.tar.gz tutor-module-9dcb793ea9225c34b5794eee2e372985c5ceda91.tar.xz tutor-module-9dcb793ea9225c34b5794eee2e372985c5ceda91.zip |
[client] Add experimental setting for number of connections per transfer
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/Config.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/Config.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java b/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java index 1066ff9b..9cb002fa 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java @@ -389,6 +389,24 @@ public class Config { } /** + * Set number of connections to establish per transfer + */ + public static void setTransferConnectionCount(int count) { + setInteger("transfer.connections-per-transfer", count); + } + + /** + * Get number of connections to establish per transfer + */ + public static int getTransferConnectionCount() { + int count = getInteger("transfer.connections-per-transfer", 1); + if (count < 1 || count > 4) { + count = 4; + } + return count; + } + + /** * Set the mode in which the proxy server is configured. * * @param mode |