@Component(value="threadPoolFactory") public class ThreadPoolFactory extends Object
构造器和说明 |
---|
ThreadPoolFactory() |
限定符和类型 | 方法和说明 |
---|---|
static ThreadPoolExecutor |
createThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
boolean allowCoreThreadTimeout,
String queue,
int queueCapacity,
String rejectedPolicy) |
static ThreadPoolExecutor |
createThreadPoolExecutor(String threadPoolName,
int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
boolean allowCoreThreadTimeout,
String queue,
int queueCapacity,
String rejectedPolicy) |
ThreadPoolExecutor |
getThreadPoolExecutor(String threadPoolName) |
public ThreadPoolExecutor getThreadPoolExecutor(String threadPoolName)
public static ThreadPoolExecutor createThreadPoolExecutor(String threadPoolName, int corePoolSize, int maximumPoolSize, long keepAliveTime, boolean allowCoreThreadTimeout, String queue, int queueCapacity, String rejectedPolicy)
public static ThreadPoolExecutor createThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, boolean allowCoreThreadTimeout, String queue, int queueCapacity, String rejectedPolicy)
Copyright © 2018 Nepxion. All rights reserved.