/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | AsynchronousChannelGroup.java | 69 * <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 D | ThreadPool.java | 39 "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 D | Executors.java | 152 * @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 D | ThreadPoolExecutor.java | 527 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 D | ScheduledThreadPoolExecutor.java | 465 * @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 D | AsynchronousChannelProvider.java | 174 * @param threadFactory 187 openAsynchronousChannelGroup(int nThreads, ThreadFactory threadFactory) throws IOException; argument
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ScheduledExecutorSubclassTest.java | 96 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 D | ThreadPoolExecutorSubclassTest.java | 173 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 D | ScheduledExecutorTest.java | 482 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 D | ThreadPoolExecutorTest.java | 240 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
|