This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch CAMEL-15197
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 721fadccf391c6ade415f78e0572c7ae4643595f
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Fri Jun 26 12:03:51 2020 +0200

    CAMEL-15197: Deprecate cached thread pool as we dont really need that
---
 .../src/main/java/org/apache/camel/spi/ExecutorServiceManager.java       | 1 +
 core/camel-api/src/main/java/org/apache/camel/spi/ThreadPoolFactory.java | 1 +
 2 files changed, 2 insertions(+)

diff --git 
a/core/camel-api/src/main/java/org/apache/camel/spi/ExecutorServiceManager.java 
b/core/camel-api/src/main/java/org/apache/camel/spi/ExecutorServiceManager.java
index c21a947..96389f9 100644
--- 
a/core/camel-api/src/main/java/org/apache/camel/spi/ExecutorServiceManager.java
+++ 
b/core/camel-api/src/main/java/org/apache/camel/spi/ExecutorServiceManager.java
@@ -229,6 +229,7 @@ public interface ExecutorServiceManager extends 
ShutdownableService, StaticServi
      * @param name        name which is appended to the thread name
      * @return the created thread pool
      */
+    @Deprecated
     ExecutorService newCachedThreadPool(Object source, String name);
 
     /**
diff --git 
a/core/camel-api/src/main/java/org/apache/camel/spi/ThreadPoolFactory.java 
b/core/camel-api/src/main/java/org/apache/camel/spi/ThreadPoolFactory.java
index d34bb9c..45492bc 100644
--- a/core/camel-api/src/main/java/org/apache/camel/spi/ThreadPoolFactory.java
+++ b/core/camel-api/src/main/java/org/apache/camel/spi/ThreadPoolFactory.java
@@ -37,6 +37,7 @@ public interface ThreadPoolFactory {
      * @param threadFactory factory for creating threads
      * @return the created thread pool
      */
+    @Deprecated
     ExecutorService newCachedThreadPool(ThreadFactory threadFactory);
     
     /**

Reply via email to