net.therore.concurrent.camel
Class SelfTuningThreadPoolFactory

java.lang.Object
  extended by org.apache.camel.impl.DefaultThreadPoolFactory
      extended by net.therore.concurrent.camel.SelfTuningThreadPoolFactory
All Implemented Interfaces:
org.apache.camel.spi.ThreadPoolFactory

public class SelfTuningThreadPoolFactory
extends org.apache.camel.impl.DefaultThreadPoolFactory


Constructor Summary
SelfTuningThreadPoolFactory(String name, Long keepAliveSeconds)
           
 
Method Summary
 ExecutorService newThreadPool(int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit timeUnit, int maxQueueSize, RejectedExecutionHandler rejectedExecutionHandler, ThreadFactory threadFactory)
           
 ExecutorService newThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory factory)
           
 void shutDown()
           
 
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
 

Constructor Detail

SelfTuningThreadPoolFactory

public SelfTuningThreadPoolFactory(String name,
                                   Long keepAliveSeconds)
Method Detail

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 Alfredo Diaz (therore.net)

Copyright © 2014. All rights reserved.