Searched refs:NUMBER_OF_THREADS (Results 1 – 2 of 2) sorted by relevance
28 public static final int NUMBER_OF_THREADS = 4; field in ThreadPool38 new ThreadPoolExecutor(/*corePoolSize=*/ NUMBER_OF_THREADS,39 /*maximumPoolSize=*/ NUMBER_OF_THREADS,
55 private static final int NUMBER_OF_THREADS = 100; field in ProvisionStateControllerThreadSafetyTest71 ExecutorService executorService = Executors.newFixedThreadPool(NUMBER_OF_THREADS); in setNextStateForEvent_shouldSetStateOnlyOnce_whenMultithreading()75 CountDownLatch finishLatch = new CountDownLatch(NUMBER_OF_THREADS); in setNextStateForEvent_shouldSetStateOnlyOnce_whenMultithreading()77 for (int i = 0; i < NUMBER_OF_THREADS; i++) { in setNextStateForEvent_shouldSetStateOnlyOnce_whenMultithreading()