org.apache.camel.util.concurrent
Class ExecutorServiceHelper
java.lang.Object
org.apache.camel.util.concurrent.ExecutorServiceHelper
public final class ExecutorServiceHelper
- extends Object
Helper for ExecutorService
to construct executors using a thread factory that
create thread names with Camel prefix.
- Version:
- $Revision: 777808 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getThreadName
public static String getThreadName(String name)
- Creates a new thread name with the given prefix
nextThreadCounter
protected static int nextThreadCounter()
newScheduledThreadPool
public static ScheduledExecutorService newScheduledThreadPool(int poolSize,
String name,
boolean daemon)
newFixedThreadPool
public static ExecutorService newFixedThreadPool(int poolSize,
String name,
boolean daemon)
newSingleThreadExecutor
public static ExecutorService newSingleThreadExecutor(String name,
boolean daemon)
Apache CAMEL