Mercurial > hg > release > thermostat-1.4
changeset 1504:14e2cef1069a
Make StorageQueue a thread pool
review-thread: http://icedtea.classpath.org/pipermail/thermostat/2014-September/011037.html
reviewed-by: omajid, jkang, jerboaa
author | Mario Torre <neugens.limasoftware@gmail.com> |
---|---|
date | Fri, 26 Sep 2014 14:34:06 +0200 |
parents | ea12b5a9665b |
children | 3aee8e9b54d9 |
files | storage/core/src/main/java/com/redhat/thermostat/storage/core/QueuedStorage.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/storage/core/src/main/java/com/redhat/thermostat/storage/core/QueuedStorage.java Wed Sep 03 11:52:37 2014 -0400 +++ b/storage/core/src/main/java/com/redhat/thermostat/storage/core/QueuedStorage.java Fri Sep 26 14:34:06 2014 +0200 @@ -501,7 +501,7 @@ * the heck out of clients. */ public QueuedStorage(Storage delegate, PerformanceLogFormatter perfLogFormatter) { - this(delegate, Executors.newSingleThreadExecutor(), Executors.newSingleThreadExecutor(), perfLogFormatter); + this(delegate, Executors.newFixedThreadPool(250), Executors.newFixedThreadPool(250)); } QueuedStorage(Storage delegate, ExecutorService executor, ExecutorService fileExecutor) {