/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | ThreadPoolExecutor.java | 51 * corePoolSize (see {@link #getCorePoolSize}) and 55 * and fewer than corePoolSize threads are running, a new thread is 57 * idle. If there are more than corePoolSize but less than 59 * if the queue is full. By setting corePoolSize and maximumPoolSize 90 * <dd>If the pool currently has more than corePoolSize threads, 100 * applies only when there are more than corePoolSize threads. But 112 * <li> If fewer than corePoolSize threads are running, the Executor 116 * <li> If corePoolSize or more threads are running, the Executor 143 * corePoolSize threads are busy. Thus, no more than corePoolSize 506 private volatile int corePoolSize; field in class:ThreadPoolExecutor 1161 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue) argument 1195 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) argument 1230 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, RejectedExecutionHandler handler) argument 1267 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler) argument 1506 setCorePoolSize(int corePoolSize) argument [all...] |
H A D | ScheduledThreadPoolExecutor.java | 51 * {@code corePoolSize} threads and an unbounded queue, adjustments 53 * is almost never a good idea to set {@code corePoolSize} to zero or 110 * the fact that corePoolSize and maximumPoolSize are 399 * core threads, but if a user creates a pool with a corePoolSize 415 * @param corePoolSize the number of threads to keep in the pool, even 417 * @throws IllegalArgumentException if {@code corePoolSize < 0} 419 public ScheduledThreadPoolExecutor(int corePoolSize) { argument 420 super(corePoolSize, Integer.MAX_VALUE, 429 * @param corePoolSize the number of threads to keep in the pool, even 433 * @throws IllegalArgumentException if {@code corePoolSize < 436 ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory) argument 454 ScheduledThreadPoolExecutor(int corePoolSize, RejectedExecutionHandler handler) argument 475 ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler) argument [all...] |
H A D | Executors.java | 253 * @param corePoolSize the number of threads to keep in the pool, 256 * @throws IllegalArgumentException if {@code corePoolSize < 0} 258 public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize) { argument 259 return new ScheduledThreadPoolExecutor(corePoolSize); 265 * @param corePoolSize the number of threads to keep in the pool, 270 * @throws IllegalArgumentException if {@code corePoolSize < 0} 274 int corePoolSize, ThreadFactory threadFactory) { 275 return new ScheduledThreadPoolExecutor(corePoolSize, threadFactory); 273 newScheduledThreadPool( int corePoolSize, ThreadFactory threadFactory) argument
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ScheduledExecutorSubclassTest.java | 85 CustomExecutor(int corePoolSize) { super(corePoolSize); } argument 86 CustomExecutor(int corePoolSize, RejectedExecutionHandler handler) { argument 87 super(corePoolSize, handler); 90 CustomExecutor(int corePoolSize, ThreadFactory threadFactory) { argument 91 super(corePoolSize, threadFactory); 93 CustomExecutor(int corePoolSize, ThreadFactory threadFactory, argument 95 super(corePoolSize, threadFactory, handler);
|
H A D | ThreadPoolExecutorSubclassTest.java | 152 CustomTPE(int corePoolSize, argument 157 super(corePoolSize, maximumPoolSize, keepAliveTime, unit, 160 CustomTPE(int corePoolSize, argument 166 super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, 170 CustomTPE(int corePoolSize, argument 176 super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, 179 CustomTPE(int corePoolSize, argument 186 super(corePoolSize, maximumPoolSize, keepAliveTime, unit, 275 * prestartCoreThread starts a thread if under corePoolSize, else doesn't 290 * prestartAllCoreThreads starts all corePoolSize thread [all...] |