changeset 1396:4a8b8abc4498

PR1746: Timer factory backport patch Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2014-April/009688.html Reviewed-by: neugens
author Severin Gehwolf <sgehwolf@redhat.com>
date Wed, 23 Apr 2014 19:09:59 +0200
parents 2f3b449bab76
children c406ad5b66f1
files common/core/src/main/java/com/redhat/thermostat/common/internal/ApplicationServiceImpl.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/common/core/src/main/java/com/redhat/thermostat/common/internal/ApplicationServiceImpl.java	Tue Apr 15 10:36:03 2014 +0200
+++ b/common/core/src/main/java/com/redhat/thermostat/common/internal/ApplicationServiceImpl.java	Wed Apr 23 19:09:59 2014 +0200
@@ -54,7 +54,8 @@
     // when used carelessly).
     private ExecutorService executor = Executors.newCachedThreadPool();
 
-    private TimerFactory timers = new ThreadPoolTimerFactory(1);
+    // TODO: this is hardcoded, should really go into the configuration file
+    private TimerFactory timers = new ThreadPoolTimerFactory(100);
 
     @Override
     public ApplicationCache getApplicationCache() {