- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for newFixedThreadPool (0.27 sec)
-
src/main/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImpl.java
executor = newFixedThreadPool(nThreads < 1 ? 1 : nThreads); final FessConfig fessConfig = ComponentUtil.getFessConfig(); maxDeleteDocumentCacheSize = fessConfig.getIndexerDataMaxDeleteCacheSizeAsInteger(); maxRedirectCount = fessConfig.getIndexerDataMaxRedirectCountAsInteger(); } protected ExecutorService newFixedThreadPool(final int nThreads) {
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 16.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/exec/ThumbnailGenerator.java
logger.warn("Failed to create system properties file.", e); } } int totalCount = 0; int count = 1; final ExecutorService executorService = Executors.newFixedThreadPool(options.numOfThreads); try { while (count != 0) { count = ComponentUtil.getThumbnailManager().generate(executorService, options.cleanup); totalCount += count;
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 8.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/eventbus/EventBusTest.java
public void testRegisterThreadSafety() throws Exception { List<StringCatcher> catchers = Lists.newCopyOnWriteArrayList(); List<Future<?>> futures = Lists.newArrayList(); ExecutorService executor = Executors.newFixedThreadPool(10); int numberOfCatchers = 10000; for (int i = 0; i < numberOfCatchers; i++) { futures.add(executor.submit(new Registrator(bus, catchers))); } for (int i = 0; i < numberOfCatchers; i++) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 11.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/EventBusTest.java
public void testRegisterThreadSafety() throws Exception { List<StringCatcher> catchers = Lists.newCopyOnWriteArrayList(); List<Future<?>> futures = Lists.newArrayList(); ExecutorService executor = Executors.newFixedThreadPool(10); int numberOfCatchers = 10000; for (int i = 0; i < numberOfCatchers; i++) { futures.add(executor.submit(new Registrator(bus, catchers))); } for (int i = 0; i < numberOfCatchers; i++) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 11.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/sso/aad/AzureAdAuthenticator.java
logger.debug("refreshToken: {}, authority: {}", refreshToken, authority); } ExecutorService service = null; try { service = Executors.newFixedThreadPool(1); final AuthenticationContext context = new AuthenticationContext(authority, true, service); final Future<AuthenticationResult> future =
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 28.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/MoreExecutors.java
* is complete. It does so by using daemon threads and adding a shutdown hook to wait for their * completion. * * <p>This is mainly for fixed thread pools. See {@link Executors#newFixedThreadPool(int)}. * * @param executor the executor to modify to make sure it exits when the application is finished * @param terminationTimeout how long to wait for the executor to finish before terminating the * JVM
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Apr 17 16:33:44 GMT 2024 - 41.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java
if (numThreads <= 0) { numThreads = (Runtime.getRuntime().availableProcessors() * 3) / 2 + 1; } executorService = Executors.newFixedThreadPool(numThreads); } } }
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 16.5K bytes - Viewed (0)