Lines Matching defs:threadFactory
27 import java.util.concurrent.ThreadFactory;
57 ThreadFactory threadFactory = builder.build();
58 Thread thread = threadFactory.newThread(monitoredRunnable);
74 // Creating a new thread from the same ThreadFactory will have the same
76 Thread thread2 = threadFactory.newThread(monitoredRunnable);
83 ThreadFactory threadFactory2 = builder.build();
98 ThreadFactory factory = builder.setNameFormat(NAME_FORMAT).build();
106 ThreadFactory factory = builder.setDaemon(false).build();
112 ThreadFactory factory = builder.setDaemon(true).build();
119 ThreadFactory factory = builder.setPriority(i).build();
148 ThreadFactory factory1 = builder.setPriority(1).build();
151 ThreadFactory factory2 = builder.setPriority(2).build();
162 ThreadFactory factory1 = builder.setPriority(1).build();
173 ThreadFactory backingThreadFactory = new ThreadFactory() {