You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:25:04 UTC
[sling-org-apache-sling-commons-threads] 07/17: SLING-758 :
Correctly evaluate block policy and use the correct handler.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.commons.threads-2.0.4-incubator
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-threads.git
commit daee250474669308140906b60eead165b806afd1
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu Dec 4 13:11:27 2008 +0000
SLING-758 : Correctly evaluate block policy and use the correct handler.
git-svn-id: https://svn.apache.org/repos/asf/incubator/sling/trunk/commons/threads@723309 13f79535-47bb-0310-9956-ffa450edef68
---
.../org/apache/sling/commons/threads/impl/DefaultThreadPool.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java b/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java
index 7c19c75..80f4617 100644
--- a/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java
+++ b/src/main/java/org/apache/sling/commons/threads/impl/DefaultThreadPool.java
@@ -116,13 +116,13 @@ public class DefaultThreadPool
handler = new ThreadPoolExecutor.AbortPolicy();
break;
case DISCARD :
- handler = new ThreadPoolExecutor.AbortPolicy();
+ handler = new ThreadPoolExecutor.DiscardPolicy();
break;
case DISCARDOLDEST :
- handler = new ThreadPoolExecutor.AbortPolicy();
+ handler = new ThreadPoolExecutor.DiscardOldestPolicy();
break;
case RUN :
- handler = new ThreadPoolExecutor.AbortPolicy();
+ handler = new ThreadPoolExecutor.CallerRunsPolicy();
break;
}
this.executor = new ThreadPoolExecutor(this.configuration.getMinPoolSize(),
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.