Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for CountDownLatch (0.07 seconds)

  1. impl/maven-core/src/test/java/org/apache/maven/plugin/internal/DefaultLegacySupportTest.java

    import java.util.concurrent.CountDownLatch;
    
    import org.apache.maven.execution.DefaultMavenExecutionRequest;
    import org.apache.maven.execution.MavenExecutionRequest;
    import org.apache.maven.execution.MavenSession;
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertNull;
    
    /**
     */
    class DefaultLegacySupportTest {
        final CountDownLatch latch = new CountDownLatch(1);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/SimplexTransferListener.java

                // nothing, is async
            }
        }
    
        private static class BlockingExchange extends Exchange {
            private final CountDownLatch latch = new CountDownLatch(1);
    
            private BlockingExchange(TransferEvent event) {
                super(event);
            }
    
            @Override
            public void process(Consumer<TransferEvent> consumer) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Feb 06 11:28:05 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  3. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparatorTest.java

            int numThreads = 10;
            int numIterations = 100;
            ExecutorService executor = Executors.newFixedThreadPool(numThreads);
            CountDownLatch latch = new CountDownLatch(numThreads);
            AtomicReference<Exception> exception = new AtomicReference<>();
    
            for (int i = 0; i < numThreads; i++) {
                executor.submit(() -> {
                    try {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Aug 06 12:03:40 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

            }
    
            if (result.getArtifactResolutionNodes() != null) {
                ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
    
                CountDownLatch latch =
                        new CountDownLatch(result.getArtifactResolutionNodes().size());
    
                for (ResolutionNode node : result.getArtifactResolutionNodes()) {
                    Artifact artifact = node.getArtifact();
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 25K bytes
    - Click Count (0)
  5. build-logic/cleanup/src/main/java/gradlebuild/cleanup/services/KillLeakingJavaProcesses.java

                return this;
            }
        }
    
        private static ExecResult run(String... args) {
            try {
                Process process = new ProcessBuilder().command(args).start();
                CountDownLatch latch = new CountDownLatch(2);
                ByteArrayOutputStream stdout = connectStream(process.getInputStream(), latch);
                ByteArrayOutputStream stderr = connectStream(process.getErrorStream(), latch);
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Sep 23 13:49:45 GMT 2025
    - 12K bytes
    - Click Count (0)
  6. impl/maven-cli/src/test/java/org/apache/maven/cling/transfer/ConsoleMavenTransferListenerTest.java

        private CountDownLatch startLatch;
        private CountDownLatch endLatch;
    
        @Test
        void testTransferProgressedWithPrintResourceNames() throws Exception {
            int size = 1000;
            ExecutorService service = Executors.newFixedThreadPool(size * 2);
            try {
                startLatch = new CountDownLatch(size);
                endLatch = new CountDownLatch(size);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  7. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/SimplexTransferListener.java

                // nothing, is async
            }
        }
    
        private static class BlockingExchange extends Exchange {
            private final CountDownLatch latch = new CountDownLatch(1);
    
            private BlockingExchange(TransferEvent event) {
                super(event);
            }
    
            @Override
            public void process(Consumer<TransferEvent> consumer) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Nov 08 08:49:11 GMT 2024
    - 8.4K bytes
    - Click Count (0)
Back to Top