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

/libcore/ojluni/src/main/java/java/nio/channels/
H A DAsynchronousChannelGroup.java69 * <td> {@code java.nio.channels.DefaultThreadPool.threadFactory} </td>
171 * @param threadFactory
182 ThreadFactory threadFactory)
186 .openAsynchronousChannelGroup(nThreads, threadFactory);
181 withFixedThreadPool(int nThreads, ThreadFactory threadFactory) argument
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DThreadPool.java39 "java.nio.channels.DefaultThreadPool.threadFactory";
109 ThreadFactory threadFactory = getDefaultThreadPoolThreadFactory();
110 if (threadFactory == null)
111 threadFactory = defaultThreadFactory();
113 ExecutorService executor = Executors.newCachedThreadPool(threadFactory);
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DExecutors.java152 * @param threadFactory the factory to use when creating new threads
154 * @throws NullPointerException if threadFactory is null
157 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { argument
161 threadFactory);
188 * equivalent {@code newFixedThreadPool(1, threadFactory)} the
192 * @param threadFactory the factory to use when creating new
196 * @throws NullPointerException if threadFactory is null
198 public static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory) { argument
203 threadFactory));
233 * @param threadFactory th
237 newCachedThreadPool(ThreadFactory threadFactory) argument
278 newSingleThreadScheduledExecutor(ThreadFactory threadFactory) argument
306 newScheduledThreadPool( int corePoolSize, ThreadFactory threadFactory) argument
[all...]
H A DThreadPoolExecutor.java527 private volatile ThreadFactory threadFactory; field in class:ThreadPoolExecutor
1234 * @param threadFactory the factory to use when the executor
1242 * or {@code threadFactory} is null
1249 ThreadFactory threadFactory) {
1251 threadFactory, defaultHandler);
1304 * @param threadFactory the factory to use when the executor
1314 * or {@code threadFactory} or {@code handler} is null
1321 ThreadFactory threadFactory,
1328 if (workQueue == null || threadFactory == null || handler == null)
1334 this.threadFactory
1244 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) argument
1316 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler) argument
1504 setThreadFactory(ThreadFactory threadFactory) argument
[all...]
H A DScheduledThreadPoolExecutor.java465 * @param threadFactory the factory to use when the executor
468 * @throws NullPointerException if {@code threadFactory} is null
471 ThreadFactory threadFactory) {
474 new DelayedWorkQueue(), threadFactory);
501 * @param threadFactory the factory to use when the executor
506 * @throws NullPointerException if {@code threadFactory} or
510 ThreadFactory threadFactory,
514 new DelayedWorkQueue(), threadFactory, handler);
470 ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory) argument
509 ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler) argument
/libcore/ojluni/src/main/java/java/nio/channels/spi/
H A DAsynchronousChannelProvider.java174 * @param threadFactory
187 openAsynchronousChannelGroup(int nThreads, ThreadFactory threadFactory) throws IOException; 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 170 milliseconds