net.therore.concurrent.camel
Class SelfTuningThreadPoolFactory
java.lang.Object
org.apache.camel.impl.DefaultThreadPoolFactory
net.therore.concurrent.camel.SelfTuningThreadPoolFactory
- All Implemented Interfaces:
- org.apache.camel.spi.ThreadPoolFactory
public class SelfTuningThreadPoolFactory
- extends org.apache.camel.impl.DefaultThreadPoolFactory
| Methods inherited from class org.apache.camel.impl.DefaultThreadPoolFactory |
newCachedThreadPool, newScheduledThreadPool |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelfTuningThreadPoolFactory
public SelfTuningThreadPoolFactory(String name,
Long keepAliveSeconds)
newThreadPool
public ExecutorService newThreadPool(org.apache.camel.spi.ThreadPoolProfile profile,
ThreadFactory factory)
- Specified by:
newThreadPool in interface org.apache.camel.spi.ThreadPoolFactory- Overrides:
newThreadPool in class org.apache.camel.impl.DefaultThreadPoolFactory
newThreadPool
public ExecutorService newThreadPool(int corePoolSize,
int maxPoolSize,
long keepAliveTime,
TimeUnit timeUnit,
int maxQueueSize,
RejectedExecutionHandler rejectedExecutionHandler,
ThreadFactory threadFactory)
throws IllegalArgumentException
- Overrides:
newThreadPool in class org.apache.camel.impl.DefaultThreadPoolFactory
- Throws:
IllegalArgumentException
shutDown
public void shutDown()
Copyright © 2014. All rights reserved.