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

/libcore/luni/src/main/java/java/util/concurrent/
H A DExecutors.java118 * @param threadFactory the factory to use when creating new threads
120 * @throws NullPointerException if threadFactory is null
123 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { argument
127 threadFactory);
154 * equivalent {@code newFixedThreadPool(1, threadFactory)} the
158 * @param threadFactory the factory to use when creating new
162 * @throws NullPointerException if threadFactory is null
164 public static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory) { argument
169 threadFactory));
199 * @param threadFactory th
203 newCachedThreadPool(ThreadFactory threadFactory) argument
244 newSingleThreadScheduledExecutor(ThreadFactory threadFactory) argument
272 newScheduledThreadPool( int corePoolSize, ThreadFactory threadFactory) argument
[all...]
H A DScheduledThreadPoolExecutor.java410 * @param threadFactory the factory to use when the executor
413 * @throws NullPointerException if {@code threadFactory} is null
416 ThreadFactory threadFactory) {
418 new DelayedWorkQueue(), threadFactory);
444 * @param threadFactory the factory to use when the executor
449 * @throws NullPointerException if {@code threadFactory} or
453 ThreadFactory threadFactory,
456 new DelayedWorkQueue(), threadFactory, handler);
415 ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory) argument
452 ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler) argument
H A DThreadPoolExecutor.java478 private volatile ThreadFactory threadFactory; field in class:ThreadPoolExecutor
1184 * @param threadFactory the factory to use when the executor
1192 * or {@code threadFactory} is null
1199 ThreadFactory threadFactory) {
1201 threadFactory, defaultHandler);
1254 * @param threadFactory the factory to use when the executor
1264 * or {@code threadFactory} or {@code handler} is null
1271 ThreadFactory threadFactory,
1278 if (workQueue == null || threadFactory == null || handler == null)
1284 this.threadFactory
1194 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) argument
1266 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler) argument
1453 setThreadFactory(ThreadFactory threadFactory) argument
[all...]
/libcore/jsr166-tests/src/test/java/jsr166/
H A DScheduledExecutorSubclassTest.java61 CustomExecutor(int corePoolSize, ThreadFactory threadFactory) { argument
62 super(corePoolSize, threadFactory);
64 CustomExecutor(int corePoolSize, ThreadFactory threadFactory, argument
66 super(corePoolSize, threadFactory, handler);
H A DThreadPoolExecutorSubclassTest.java135 ThreadFactory threadFactory) {
137 threadFactory);
154 ThreadFactory threadFactory,
157 workQueue, threadFactory, handler);
816 * Constructor throws if threadFactory is set to null
130 CustomTPE(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) argument
149 CustomTPE(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler) argument

Completed in 150 milliseconds