Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/
DExecutors.java158 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { in newFixedThreadPool() argument
162 threadFactory); in newFixedThreadPool()
199 public static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory) { in newSingleThreadExecutor() argument
204 threadFactory)); in newSingleThreadExecutor()
238 public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory) { in newCachedThreadPool() argument
242 threadFactory); in newCachedThreadPool()
279 …lic static ScheduledExecutorService newSingleThreadScheduledExecutor(ThreadFactory threadFactory) { in newSingleThreadScheduledExecutor() argument
281 (new ScheduledThreadPoolExecutor(1, threadFactory)); in newSingleThreadScheduledExecutor()
308 int corePoolSize, ThreadFactory threadFactory) { in newScheduledThreadPool() argument
309 return new ScheduledThreadPoolExecutor(corePoolSize, threadFactory); in newScheduledThreadPool()
DThreadPoolExecutor.java532 private volatile ThreadFactory threadFactory; field in ThreadPoolExecutor
1254 ThreadFactory threadFactory) { in ThreadPoolExecutor() argument
1256 threadFactory, defaultHandler); in ThreadPoolExecutor()
1326 ThreadFactory threadFactory, in ThreadPoolExecutor() argument
1333 if (workQueue == null || threadFactory == null || handler == null) in ThreadPoolExecutor()
1339 this.threadFactory = threadFactory; in ThreadPoolExecutor()
1509 public void setThreadFactory(ThreadFactory threadFactory) { in setThreadFactory() argument
1510 if (threadFactory == null) in setThreadFactory()
1512 this.threadFactory = threadFactory; in setThreadFactory()
1522 return threadFactory; in getThreadFactory()
DScheduledThreadPoolExecutor.java471 ThreadFactory threadFactory) { in ScheduledThreadPoolExecutor() argument
474 new DelayedWorkQueue(), threadFactory); in ScheduledThreadPoolExecutor()
510 ThreadFactory threadFactory, in ScheduledThreadPoolExecutor() argument
514 new DelayedWorkQueue(), threadFactory, handler); in ScheduledThreadPoolExecutor()
/libcore/ojluni/src/main/java/sun/nio/ch/
DThreadPool.java117 ThreadFactory threadFactory = getDefaultThreadPoolThreadFactory(); in createDefault() local
118 if (threadFactory == null) in createDefault()
119 threadFactory = defaultThreadFactory(); in createDefault()
121 ExecutorService executor = Executors.newCachedThreadPool(threadFactory); in createDefault()
/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousChannelGroup.java182 ThreadFactory threadFactory) in withFixedThreadPool() argument
186 .openAsynchronousChannelGroup(nThreads, threadFactory); in withFixedThreadPool()
/libcore/jsr166-tests/src/test/java/jsr166/
DScheduledExecutorSubclassTest.java96 CustomExecutor(int corePoolSize, ThreadFactory threadFactory) { in CustomExecutor() argument
97 super(corePoolSize, threadFactory); in CustomExecutor()
99 CustomExecutor(int corePoolSize, ThreadFactory threadFactory, in CustomExecutor() argument
101 super(corePoolSize, threadFactory, handler); in CustomExecutor()
538 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory() local
539 final CustomExecutor p = new CustomExecutor(1, threadFactory); in testGetThreadFactory()
541 assertSame(threadFactory, p.getThreadFactory()); in testGetThreadFactory()
549 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory() local
552 p.setThreadFactory(threadFactory); in testSetThreadFactory()
553 assertSame(threadFactory, p.getThreadFactory()); in testSetThreadFactory()
DThreadPoolExecutorSubclassTest.java173 ThreadFactory threadFactory) { in CustomTPE() argument
175 threadFactory); in CustomTPE()
192 ThreadFactory threadFactory, in CustomTPE() argument
195 workQueue, threadFactory, handler); in CustomTPE()
387 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory() local
392 threadFactory, in testGetThreadFactory()
395 assertSame(threadFactory, p.getThreadFactory()); in testGetThreadFactory()
408 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory() local
409 p.setThreadFactory(threadFactory); in testSetThreadFactory()
410 assertSame(threadFactory, p.getThreadFactory()); in testSetThreadFactory()
DScheduledExecutorTest.java482 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory() local
484 new ScheduledThreadPoolExecutor(1, threadFactory); in testGetThreadFactory()
486 assertSame(threadFactory, p.getThreadFactory()); in testGetThreadFactory()
494 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory() local
497 p.setThreadFactory(threadFactory); in testSetThreadFactory()
498 assertSame(threadFactory, p.getThreadFactory()); in testSetThreadFactory()
DThreadPoolExecutorTest.java240 ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory() local
245 threadFactory, in testGetThreadFactory()
248 assertSame(threadFactory, p.getThreadFactory()); in testGetThreadFactory()
261 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory() local
262 p.setThreadFactory(threadFactory); in testSetThreadFactory()
263 assertSame(threadFactory, p.getThreadFactory()); in testSetThreadFactory()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAsynchronousChannelProvider.java187 openAsynchronousChannelGroup(int nThreads, ThreadFactory threadFactory) throws IOException;