public class IoTDBThreadPoolFactory extends Object
public static ExecutorService newFixedThreadPool(int nThreads, String poolName)
poolName - - the name of thread poolpublic static ExecutorService newFixedThreadPoolWithDaemonThread(int nThreads, String poolName)
public static ExecutorService newFixedThreadPool(int nThreads, String poolName, Thread.UncaughtExceptionHandler handler)
public static ExecutorService newSingleThreadExecutor(String poolName)
poolName - the name of thread pool.public static ExecutorService newSingleThreadExecutorWithDaemon(String poolName)
public static ExecutorService newSingleThreadExecutor(String poolName, Thread.UncaughtExceptionHandler handler)
public static ExecutorService newCachedThreadPool(String poolName)
poolName - the name of thread pool.public static ExecutorService newCachedThreadPool(String poolName, Thread.UncaughtExceptionHandler handler)
public static ExecutorService newCachedThreadPoolWithDaemon(String poolName)
public static ScheduledExecutorService newSingleThreadScheduledExecutor(String poolName)
poolName - the name of thread pool.public static ScheduledExecutorService newSingleThreadScheduledExecutor(String poolName, Thread.UncaughtExceptionHandler handler)
public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, String poolName)
corePoolSize - the number of threads to keep in the pool.poolName - the name of thread pool.public static ScheduledExecutorService newScheduledThreadPoolWithDaemon(int corePoolSize, String poolName)
public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, String poolName, Thread.UncaughtExceptionHandler handler)
public static ExecutorService newThreadPool(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, IoTThreadFactory ioTThreadFactory, String poolName)
public static ExecutorService createThriftRpcClientThreadPool(org.apache.thrift.server.TThreadPoolServer.Args args, String poolName)
public static ExecutorService createThriftRpcClientThreadPool(int minWorkerThreads, int maxWorkerThreads, int stopTimeoutVal, TimeUnit stopTimeoutUnit, String poolName)
public static ExecutorService createThriftRpcClientThreadPool(org.apache.thrift.server.TThreadPoolServer.Args args, String poolName, Thread.UncaughtExceptionHandler handler)
Copyright © 2022 The Apache Software Foundation. All rights reserved.