Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 322 for getter (0.03 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

        // Do blocking calls to plan a route for a new connection.
        val connect = planConnect()
    
        // Now that we have a set of IP addresses, make another attempt at getting a connection from
        // the pool. We have a better chance of matching thanks to connection coalescing.
        val pooled2 = planReusePooledConnection(connect, connect.routes)
        if (pooled2 != null) return pooled2
    
        return connect
      }
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            int read = resp.decode(packet, 0, false);
            assertTrue(read >= SMB2_HEADER_LENGTH + body.length, "Should decode at least header+body");
    
            // Validate simple getters
            assertEquals((byte) 0x7, resp.getOplockLevel());
            assertEquals((byte) 0x2, resp.getOpenFlags());
            assertEquals(0x11223344, resp.getCreateAction());
            assertEquals(1111L, resp.getCreationTime());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

         */
        public boolean isUsableForChannel() {
            return address != null && !address.isLoopbackAddress() && !address.isLinkLocalAddress();
        }
    
        /**
         * Get a score for interface selection (higher is better)
         *
         * @return interface score
         */
        public int getScore() {
            int score = linkSpeed; // Base score is link speed
    
            if (rssCapable)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

     * if (forceCacheResponse.code() != 504) {
     *   // The resource was cached! Show it.
     * } else {
     *   // The resource was not cached.
     * }
     * ```
     *
     * This technique works even better in situations where a stale response is better than no response.
     * To permit stale cached responses, use the `max-stale` directive with the maximum staleness in
     * seconds:
     *
     * ```java
     * Request request = new Request.Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

            assertArrayEquals(testData, response.getData());
            // The decode method returns only the header size (16 bytes)\n        assertEquals(16, bytesDecoded);
        }
    
        @Test
        @DisplayName("Test getters return initial null/zero values")
        void testInitialGetterValues() {
            // Create fresh instance
            SrvPipePeekResponse freshResponse = new SrvPipePeekResponse();
    
            // Verify initial state
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_3x.md

        interface to track metrics and monitor HTTP requests' size and duration.
     *  New: `okhttp-dnsoverhttps` is an experimental API for doing DNS queries over HTTPS. Using HTTPS
        for DNS offers better security and potentially better performance. This feature is a preview:
        the API is subject to change.
     *  New: `okhttp-sse` is an early preview of Server-Sent Events (SSE). This feature is incomplete
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

            int uniqueBytes = countUniqueBytes(data);
            double entropy = (double) uniqueBytes / 256.0;
    
            // Estimate compression ratio based on entropy
            // Lower entropy = better compression
            return 0.3 + (entropy * 0.6); // Range from 30% to 90%
        }
    
        @Override
        public int getMinCompressionSize() {
            return MIN_COMPRESSION_SIZE;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

      }
    
      // setFuture and cancel() interact in more complicated ways than the other setters.
      public void testSetFutureCancelBash() {
        if (isWindows()) {
          return; // TODO: b/136041958 - Running very slowly on Windows CI.
        }
        int size = 50;
        CyclicBarrier barrier =
            new CyclicBarrier(
                2 // for the setter threads
                    + size // for the listeners
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  9. CHANGELOG.md

    this change should be automatic.
    
    **MockWebServer has a new coordinate and package name.** We didn’t like that our old artifact
    depends on JUnit 4 so the new one doesn’t. It also has a better API built on immutable values. (We
    intend to continue publishing the old `okhttp3.mockwebserver` artifact so there’s no urgency to
    migrate.)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 31.6K bytes
    - Viewed (1)
  10. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

        public int compare(Entry<K, V> a, Entry<K, V> b) {
          return (keyComparator == null)
              ? ((Comparable) a.getKey()).compareTo(b.getKey())
              : keyComparator.compare(a.getKey(), b.getKey());
        }
      }
    
      public static <K extends @Nullable Object, V extends @Nullable Object>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 17.2K bytes
    - Viewed (0)
Back to top