Searched refs:getThreadFactory (Results 1 – 8 of 8) sorted by relevance
537 assertTrue(executor.getThreadFactory().newThread(EMPTY_RUNNABLE).isDaemon()); in testGetExitingExcutorService_executorSetToUseDaemonThreads()544 when(executor.getThreadFactory()).thenReturn(threadFactory); in testGetExitingExcutorService_executorDelegatesToOriginal()553 when(executor.getThreadFactory()).thenReturn(threadFactory); in testGetExitingExcutorService_shutdownHookRegistered()563 assertTrue(executor.getThreadFactory().newThread(EMPTY_RUNNABLE).isDaemon()); in testGetExitingScheduledExcutorService_executorSetToUseDaemonThreads()570 when(executor.getThreadFactory()).thenReturn(threadFactory); in testGetExitingScheduledExcutorService_executorDelegatesToOriginal()580 when(executor.getThreadFactory()).thenReturn(threadFactory); in testGetScheduledExitingExcutorService_shutdownHookRegistered()
14 Object getThreadFactory(); in getThreadFactory() method
24 (ThreadFactory) tf.getThreadFactory()); in ExecutorAdapter()
120 public Object getThreadFactory() { in getThreadFactory() method in ThreadUtil.ThreadFactoryImpl
493 return Executors.newCachedThreadPool(getThreadFactory(NAME + "-%d", true));518 getThreadFactory("grpc-timer-%d", true));553 public static ThreadFactory getThreadFactory(String nameFormat, boolean daemon) { in getThreadFactory() method in GrpcUtil
51 GrpcUtil.getThreadFactory("grpc-shared-destroyer-%d", true));
129 return Executors.newCachedThreadPool(GrpcUtil.getThreadFactory("grpc-okhttp-%d", true));
230 .setThreadFactory(executor.getThreadFactory()) in useDaemonThreadFactory()