Searched refs:threadFactory (Results 1 - 8 of 8) sorted by relevance

/libcore/ojluni/src/main/java/sun/nio/ch/
H A DThreadPool.java39 "java.nio.channels.DefaultThreadPool.threadFactory";
101 ThreadFactory threadFactory = getDefaultThreadPoolThreadFactory();
102 if (threadFactory == null)
103 threadFactory = defaultThreadFactory;
109 threadFactory);
/libcore/luni/src/main/java/java/util/concurrent/
H A DExecutors.java123 * @param threadFactory the factory to use when creating new threads
125 * @throws NullPointerException if threadFactory is null
128 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { argument
132 threadFactory);
159 * equivalent {@code newFixedThreadPool(1, threadFactory)} the
163 * @param threadFactory the factory to use when creating new
167 * @throws NullPointerException if threadFactory is null
169 public static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory) { argument
174 threadFactory));
204 * @param threadFactory th
208 newCachedThreadPool(ThreadFactory threadFactory) argument
249 newSingleThreadScheduledExecutor(ThreadFactory threadFactory) argument
277 newScheduledThreadPool( int corePoolSize, ThreadFactory threadFactory) argument
[all...]
H A DThreadPoolExecutor.java498 private volatile ThreadFactory threadFactory; field in class:ThreadPoolExecutor
1205 * @param threadFactory the factory to use when the executor
1213 * or {@code threadFactory} is null
1220 ThreadFactory threadFactory) {
1222 threadFactory, defaultHandler);
1275 * @param threadFactory the factory to use when the executor
1285 * or {@code threadFactory} or {@code handler} is null
1292 ThreadFactory threadFactory,
1299 if (workQueue == null || threadFactory == null || handler == null)
1305 this.threadFactory
1215 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) argument
1287 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler) argument
1475 setThreadFactory(ThreadFactory threadFactory) argument
[all...]
H A DScheduledThreadPoolExecutor.java436 * @param threadFactory the factory to use when the executor
439 * @throws NullPointerException if {@code threadFactory} is null
442 ThreadFactory threadFactory) {
445 new DelayedWorkQueue(), threadFactory);
472 * @param threadFactory the factory to use when the executor
477 * @throws NullPointerException if {@code threadFactory} or
481 ThreadFactory threadFactory,
485 new DelayedWorkQueue(), threadFactory, handler);
441 ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory) argument
480 ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler) argument
/libcore/jsr166-tests/src/test/java/jsr166/
H A DScheduledExecutorSubclassTest.java96 CustomExecutor(int corePoolSize, ThreadFactory threadFactory) { argument
97 super(corePoolSize, threadFactory);
99 CustomExecutor(int corePoolSize, ThreadFactory threadFactory, argument
101 super(corePoolSize, threadFactory, handler);
538 final ThreadFactory threadFactory = new SimpleThreadFactory();
539 final CustomExecutor p = new CustomExecutor(1, threadFactory);
541 assertSame(threadFactory, p.getThreadFactory());
549 final ThreadFactory threadFactory = new SimpleThreadFactory();
552 p.setThreadFactory(threadFactory);
553 assertSame(threadFactory,
[all...]
H A DThreadPoolExecutorSubclassTest.java173 ThreadFactory threadFactory) {
175 threadFactory);
192 ThreadFactory threadFactory,
195 workQueue, threadFactory, handler);
387 final ThreadFactory threadFactory = new SimpleThreadFactory();
392 threadFactory,
395 assertSame(threadFactory, p.getThreadFactory());
408 ThreadFactory threadFactory = new SimpleThreadFactory();
409 p.setThreadFactory(threadFactory);
410 assertSame(threadFactory,
168 CustomTPE(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) argument
187 CustomTPE(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler) argument
[all...]
H A DScheduledExecutorTest.java482 final ThreadFactory threadFactory = new SimpleThreadFactory();
484 new ScheduledThreadPoolExecutor(1, threadFactory);
486 assertSame(threadFactory, p.getThreadFactory());
494 ThreadFactory threadFactory = new SimpleThreadFactory();
497 p.setThreadFactory(threadFactory);
498 assertSame(threadFactory, p.getThreadFactory());
H A DThreadPoolExecutorTest.java240 ThreadFactory threadFactory = new SimpleThreadFactory();
245 threadFactory,
248 assertSame(threadFactory, p.getThreadFactory());
261 ThreadFactory threadFactory = new SimpleThreadFactory();
262 p.setThreadFactory(threadFactory);
263 assertSame(threadFactory, p.getThreadFactory());
826 * Constructor throws if threadFactory is set to null

Completed in 79 milliseconds