Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 39 for AtomicReference (0.06 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt

    import java.io.InterruptedIOException
    import java.net.HttpURLConnection
    import java.time.Duration
    import java.util.concurrent.CountDownLatch
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.atomic.AtomicReference
    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.junit5.StartStop
    import okhttp3.MediaType.Companion.toMediaTypeOrNull
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

    import java.util.List;
    import java.util.concurrent.atomic.AtomicReference;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Unit test for {@link AbstractCache}.
     *
     * @author Charles Fry
     */
    @NullUnmarked
    public class AbstractCacheTest extends TestCase {
    
      public void testGetIfPresent() {
        AtomicReference<Object> valueRef = new AtomicReference<>();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/AutobahnTester.kt

     */
    package okhttp3
    
    import java.util.concurrent.CountDownLatch
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.atomic.AtomicLong
    import java.util.concurrent.atomic.AtomicReference
    import okhttp3.internal.USER_AGENT
    import okio.ByteString
    
    /**
     * Exercises the web socket implementation against the
     * [Autobahn Testsuite](http://autobahn.ws/testsuite/).
     */
    class AutobahnTester {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/SuppliersTest.java

      @GwtIncompatible // Thread
      private void testSupplierThreadSafe(Function<Supplier<Boolean>, Supplier<Boolean>> memoizer)
          throws Throwable {
        AtomicInteger count = new AtomicInteger(0);
        AtomicReference<Throwable> thrown = new AtomicReference<>(null);
        int numThreads = 3;
        Thread[] threads = new Thread[numThreads];
        long timeout = SECONDS.toNanos(60);
    
        Supplier<Boolean> supplier =
            new Supplier<Boolean>() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/ldap/LdapUserTest.java

        public void test_getPermissions_withLdapConfig() {
            // Test with LDAP configuration
            final AtomicBoolean activityHelperCalled = new AtomicBoolean(false);
            final AtomicReference<String[]> rolesFromCallback = new AtomicReference<>();
    
            ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
                @Override
                public String getLdapBaseDn() {
                    return "dc=example,dc=com";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/util/SimpleCircuitBreaker.java

        public enum State {
            CLOSED, // Normal operation
            OPEN, // Failing, requests blocked
            HALF_OPEN // Testing recovery
        }
    
        private final String name;
        private final AtomicReference<State> state = new AtomicReference<>(State.CLOSED);
        private final AtomicInteger consecutiveFailures = new AtomicInteger(0);
        private final AtomicInteger halfOpenSuccesses = new AtomicInteger(0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            assertEquals("ok", FileUtil.readText(fileList.get(0).toFile()));
        }
    
        public void test_updateSystemProperties() {
            final SystemHelper helper = new SystemHelper();
            final AtomicReference<String> appValue = new AtomicReference<>(StringUtil.EMPTY);
            ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
                private static final long serialVersionUID = 1L;
    
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/IndexingHelperTest.java

                }
            }, WebConfigService.class.getCanonicalName());
        }
    
        public void test_sendDocuments() {
            documentSizeByQuery = 0L;
            final AtomicReference<String> sentIndex = new AtomicReference<>();
            final List<Map<String, Object>> sentDocList = new ArrayList<>();
            final SearchEngineClient client = new SearchEngineClient() {
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 29.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/reflect/Types.java

        return (type instanceof Class) ? ((Class<?>) type).getName() : type.toString();
      }
    
      static @Nullable Type getComponentType(Type type) {
        checkNotNull(type);
        AtomicReference<@Nullable Type> result = new AtomicReference<>();
        new TypeVisitor() {
          @Override
          void visitTypeVariable(TypeVariable<?> t) {
            result.set(subtypeOfComponentType(t.getBounds()));
          }
    
          @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/SmbCircuitBreaker.java

             */
            OPEN,
    
            /**
             * Testing if service has recovered
             */
            HALF_OPEN
        }
    
        private final String name;
        private final AtomicReference<State> state = new AtomicReference<>(State.CLOSED);
        private final AtomicInteger failureCount = new AtomicInteger(0);
        private final AtomicInteger successCount = new AtomicInteger(0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
Back to top