Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 49 of 49 for newFixedThreadPool (0.12 seconds)

  1. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

        @Test
        @DisplayName("Test concurrent session handling")
        public void testConcurrentSessionHandling() throws Exception {
            int sessionCount = 10;
            ExecutorService executor = Executors.newFixedThreadPool(5);
            CountDownLatch latch = new CountDownLatch(sessionCount);
    
            for (int i = 0; i < sessionCount; i++) {
                final int sessionIndex = i;
                executor.submit(() -> {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

            final int threadCount = 10;
            final int operationsPerThread = 100;
            final ExecutorService executor = Executors.newFixedThreadPool(threadCount);
    
            final List<Long> timings = Collections.synchronizedList(new ArrayList<>());
    
            try {
                for (int t = 0; t < threadCount; t++) {
                    executor.submit(() -> {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  3. benchmarks/src/main/java/org/elasticsearch/benchmark/search/aggregations/TermsReduceBenchmark.java

            request.source(new SearchSourceBuilder().size(0).aggregation(AggregationBuilders.terms("test")));
            request.setBatchedReduceSize(bufferSize);
            ExecutorService executor = Executors.newFixedThreadPool(1);
            QueryPhaseResultConsumer consumer = new QueryPhaseResultConsumer(
                request,
                executor,
                new NoopCircuitBreaker(CircuitBreaker.REQUEST),
                controller,
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Aug 20 15:45:38 GMT 2021
    - 8.1K bytes
    - Click Count (0)
  4. src/test/java/jcifs/SmbWatchHandleTest.java

                    return info;
                }
            };
    
            // Execute concurrent operations
            ExecutorService executor = Executors.newFixedThreadPool(3);
            try {
                List<Future<List<FileNotifyInformation>>> futures = new ArrayList<>();
    
                for (int i = 0; i < 3; i++) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.2K bytes
    - Click Count (1)
  5. src/test/java/jcifs/util/SecureKeyManagerTest.java

            int operationsPerThread = 50;
            CountDownLatch latch = new CountDownLatch(threadCount);
            AtomicInteger successCount = new AtomicInteger(0);
            ExecutorService executor = Executors.newFixedThreadPool(threadCount);
    
            for (int t = 0; t < threadCount; t++) {
                final int threadId = t;
                executor.submit(() -> {
                    try {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  6. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/client/FesenClientTest.java

         */
        @Test
        public void testThreadSafeListenerManagement() throws Exception {
            final int numThreads = 10;
            final ExecutorService executor = Executors.newFixedThreadPool(numThreads);
            final CountDownLatch latch = new CountDownLatch(numThreads);
            final AtomicInteger callbackCount = new AtomicInteger(0);
    
            // Add listeners concurrently from multiple threads
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Mon Jan 12 06:25:38 GMT 2026
    - 16.9K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/script/groovy/GroovyEngineTest.java

            final GroovyEngine engine = new GroovyEngine();
            final int threadCount = 8;
            final int iterationsPerThread = 50;
            final ExecutorService executor = Executors.newFixedThreadPool(threadCount);
            final CountDownLatch startLatch = new CountDownLatch(1);
            final AtomicInteger errors = new AtomicInteger(0);
    
            final List<Future<?>> futures = new ArrayList<>();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 29.1K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java

                    if (logger.isDebugEnabled()) {
                        logger.debug("Initializing executor service with {} threads", numThreads);
                    }
                    executorService = Executors.newFixedThreadPool(numThreads);
                }
            }
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 25 02:13:14 GMT 2025
    - 28K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java

                        session.getProjects().size());
                // Propagate the parallel flag to the root session
                session.setParallel(threads > 1);
                this.executor = new PhasingExecutor(Executors.newFixedThreadPool(threads, new BuildThreadFactory()));
    
                // build initial plan
                this.plan = buildInitialPlan(taskSegments);
            }
    
            BuildContext() {
                this.session = null;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 55.1K bytes
    - Click Count (0)
Back to Top