Searched defs:corePoolSize (Results 1 - 5 of 5) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
H A DExecutors.java287 * @param corePoolSize the number of threads to keep in the pool,
290 * @throws IllegalArgumentException if {@code corePoolSize < 0}
292 public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize) { argument
293 return new ScheduledThreadPoolExecutor(corePoolSize);
299 * @param corePoolSize the number of threads to keep in the pool,
304 * @throws IllegalArgumentException if {@code corePoolSize < 0}
308 int corePoolSize, ThreadFactory threadFactory) {
309 return new ScheduledThreadPoolExecutor(corePoolSize, threadFactory);
307 newScheduledThreadPool( int corePoolSize, ThreadFactory threadFactory) argument
H A DScheduledThreadPoolExecutor.java86 * {@code corePoolSize} threads and an unbounded queue, adjustments
88 * is almost never a good idea to set {@code corePoolSize} to zero or
144 * the fact that corePoolSize and maximumPoolSize are
433 * core threads, but if a user creates a pool with a corePoolSize
449 * @param corePoolSize the number of threads to keep in the pool, even
451 * @throws IllegalArgumentException if {@code corePoolSize < 0}
453 public ScheduledThreadPoolExecutor(int corePoolSize) { argument
454 super(corePoolSize, Integer.MAX_VALUE,
463 * @param corePoolSize the number of threads to keep in the pool, even
467 * @throws IllegalArgumentException if {@code corePoolSize <
470 ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory) argument
488 ScheduledThreadPoolExecutor(int corePoolSize, RejectedExecutionHandler handler) argument
509 ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler) argument
[all...]
H A DThreadPoolExecutor.java86 * corePoolSize (see {@link #getCorePoolSize}) and
90 * and fewer than corePoolSize threads are running, a new thread is
92 * idle. If there are more than corePoolSize but less than
94 * if the queue is full. By setting corePoolSize and maximumPoolSize
133 * If the pool currently has more than corePoolSize threads,
143 * applies only when there are more than corePoolSize threads, but
156 * <li>If fewer than corePoolSize threads are running, the Executor
160 * <li>If corePoolSize or more threads are running, the Executor
187 * corePoolSize threads are busy. Thus, no more than corePoolSize
559 private volatile int corePoolSize; field in class:ThreadPoolExecutor
1215 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue) argument
1249 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) argument
1284 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, RejectedExecutionHandler handler) argument
1321 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler) argument
1566 setCorePoolSize(int corePoolSize) argument
[all...]
/libcore/jsr166-tests/src/test/java/jsr166/
H A DScheduledExecutorSubclassTest.java91 CustomExecutor(int corePoolSize) { super(corePoolSize); } argument
92 CustomExecutor(int corePoolSize, RejectedExecutionHandler handler) { argument
93 super(corePoolSize, handler);
96 CustomExecutor(int corePoolSize, ThreadFactory threadFactory) { argument
97 super(corePoolSize, threadFactory);
99 CustomExecutor(int corePoolSize, ThreadFactory threadFactory, argument
101 super(corePoolSize, threadFactory, handler);
H A DThreadPoolExecutorSubclassTest.java160 CustomTPE(int corePoolSize, argument
165 super(corePoolSize, maximumPoolSize, keepAliveTime, unit,
168 CustomTPE(int corePoolSize, argument
174 super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue,
178 CustomTPE(int corePoolSize, argument
184 super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue,
187 CustomTPE(int corePoolSize, argument
194 super(corePoolSize, maximumPoolSize, keepAliveTime, unit,
276 * prestartCoreThread starts a thread if under corePoolSize, else doesn't
302 * prestartAllCoreThreads starts all corePoolSize thread
[all...]

Completed in 87 milliseconds