Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 63 for AtomicBoolean (0.07 seconds)

  1. src/test/java/org/codelibs/fess/helper/DataIndexHelperTest.java

                }
            }, "crawlingConfigHelper");
    
            // Fast mock SystemHelper with immediate force stop capability
            ComponentUtil.register(new SystemHelper() {
                private final AtomicBoolean forceStop = new AtomicBoolean(false);
    
                @Override
                public long getCurrentTimeAsLong() {
                    return System.currentTimeMillis();
                }
    
                @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.9K bytes
    - Click Count (0)
  2. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

      static final class Interruptenator extends Thread {
        final AtomicBoolean shutdown;
    
        Interruptenator(Thread interruptee) {
          this(interruptee, new AtomicBoolean(false));
        }
    
        @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait.
        Interruptenator(Thread interruptee, AtomicBoolean shutdown) {
          super(
              () -> {
                while (!shutdown.get()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

        assertThat(executionException).hasCauseThat().isEqualTo(e);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // blocking wait
      public void testCancel_interrupted() throws Exception {
        AtomicBoolean interruptedExceptionThrown = new AtomicBoolean();
        CountDownLatch enterLatch = new CountDownLatch(1);
        CountDownLatch exitLatch = new CountDownLatch(1);
        TrustedListenableFutureTask<Integer> task =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      public void testRemovalNotification_clear() throws InterruptedException {
        // If a clear() happens while a computation is pending, we should not get a removal
        // notification.
    
        AtomicBoolean shouldWait = new AtomicBoolean(false);
        CountDownLatch computingLatch = new CountDownLatch(1);
        CacheLoader<String, String> computingFunction =
            new CacheLoader<String, String>() {
              @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      public void testRemovalNotification_clear() throws InterruptedException {
        // If a clear() happens while a computation is pending, we should not get a removal
        // notification.
    
        AtomicBoolean shouldWait = new AtomicBoolean(false);
        CountDownLatch computingLatch = new CountDownLatch(1);
        CacheLoader<String, String> computingFunction =
            new CacheLoader<String, String>() {
              @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildStep.java

        final Collection<BuildStep> predecessors = new HashSet<>();
        final Collection<BuildStep> successors = new HashSet<>();
        final AtomicInteger status = new AtomicInteger();
        final AtomicBoolean skip = new AtomicBoolean();
        volatile Exception exception;
    
        public BuildStep(String name, MavenProject project, Lifecycle.Phase phase) {
            this.name = Objects.requireNonNull(name, "name cannot be null");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Apr 30 16:21:08 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

        assertThat(executionException).hasCauseThat().isEqualTo(e);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // blocking wait
      public void testCancel_interrupted() throws Exception {
        AtomicBoolean interruptedExceptionThrown = new AtomicBoolean();
        CountDownLatch enterLatch = new CountDownLatch(1);
        CountDownLatch exitLatch = new CountDownLatch(1);
        TrustedListenableFutureTask<Integer> task =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  8. mockwebserver-junit4/src/test/java/mockwebserver3/junit4/MockWebServerRuleTest.kt

    import java.net.ConnectException
    import java.util.concurrent.atomic.AtomicBoolean
    import org.junit.Assert.fail
    import org.junit.Test
    import org.junit.runner.Description
    import org.junit.runners.model.Statement
    
    class MockWebServerRuleTest {
      @Test fun statementStartsAndStops() {
        val rule = MockWebServerRule()
        val called = AtomicBoolean()
        val statement: Statement =
          rule.apply(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/SimplexTransferListener.java

    import java.util.ArrayList;
    import java.util.List;
    import java.util.concurrent.ArrayBlockingQueue;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.atomic.AtomicBoolean;
    import java.util.function.Consumer;
    
    import org.eclipse.aether.transfer.AbstractTransferListener;
    import org.eclipse.aether.transfer.TransferCancelledException;
    import org.eclipse.aether.transfer.TransferEvent;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Feb 06 11:28:05 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/witness/MockWitnessService.java

    public class MockWitnessService implements AutoCloseable {
        private static final Logger log = LoggerFactory.getLogger(MockWitnessService.class);
    
        private ServerSocket serverSocket;
        private final AtomicBoolean running = new AtomicBoolean(false);
        private final AtomicInteger registrationCounter = new AtomicInteger(0);
        private final ConcurrentHashMap<String, MockRegistration> registrations = new ConcurrentHashMap<>();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 8.2K bytes
    - Click Count (0)
Back to Top