This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.commons.threads-3.2.4 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-threads.git
commit ed874691f349bf3a17b874cff62084def1c01e44 Author: Julian Sedding <[email protected]> AuthorDate: Mon Dec 7 10:13:26 2015 +0000 SLING-5354 - Thread Pool max-thread-age config not taken into account git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/threads@1718289 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/sling/commons/threads/impl/DefaultThreadPoolManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPoolManager.java b/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPoolManager.java index 120c8da..cb77b2a 100644 --- a/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPoolManager.java +++ b/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPoolManager.java @@ -99,7 +99,7 @@ public class DefaultThreadPoolManager config.setQueueSize((Integer)props.get(ModifiableThreadPoolConfig.PROPERTY_QUEUE_SIZE)); } if ( props.get(ModifiableThreadPoolConfig.PROPERTY_MAX_THREAD_AGE) != null ) { - config.setQueueSize((Integer)props.get(ModifiableThreadPoolConfig.PROPERTY_MAX_THREAD_AGE)); + config.setMaxThreadAge((Long) props.get(ModifiableThreadPoolConfig.PROPERTY_MAX_THREAD_AGE)); } if ( props.get(ModifiableThreadPoolConfig.PROPERTY_KEEP_ALIVE_TIME) != null ) { config.setKeepAliveTime((Long)props.get(ModifiableThreadPoolConfig.PROPERTY_KEEP_ALIVE_TIME)); -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
