Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for Threshold (0.05 sec)

  1. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

            // With threshold 1, writing 1 byte should stay in memory
            ContentOutputStream cos = new ContentOutputStream(1, Curl.tmpDir);
            cos.write(new byte[] { 1 });
            assertTrue(cos.isInMemory());
            assertFalse(cos.done);
            cos.close();
        }
    
        @Test
        public void testThresholdOneExceeded() throws IOException {
            // With threshold 1, writing 2 bytes should go to file
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Wed Nov 12 14:01:04 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/curl/CurlRequest.java

            this.encoding = encoding;
            return this;
        }
    
        /**
         * Sets the threshold size for the request body.
         *
         * @param threshold the threshold
         * @return this CurlRequest instance
         */
        public CurlRequest threshold(final int threshold) {
            this.threshold = threshold;
            return this;
        }
    
        /**
         * Enables GZIP compression for the request.
         *
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/curl/CurlRequestTest.java

        public void testThresholdMethod() {
            CurlRequest request = new CurlRequest(Method.GET, "https://example.com");
            int threshold = 2048;
    
            CurlRequest result = request.threshold(threshold);
    
            assertSame(request, result); // Fluent API
            assertEquals(threshold, request.threshold());
        }
    
        @Test
        public void testGzipMethod() {
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/collection/ArrayMap.java

            }
        }
    
        @Override
        public Object clone() {
            final ArrayMap<K, V> copy = new ArrayMap<>();
            copy.threshold = threshold;
            copy.mapTable = Arrays.copyOf(mapTable, size);
            copy.listTable = Arrays.copyOf(listTable, size);
            copy.size = size;
            return copy;
        }
    
        /**
         * Returns the index of the entry.
         *
         * @param entry
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TopKSelector.java

          // uncheckedCastNullableTToT is safe because bufferSize > 0.
          if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) > 0) {
            threshold = elem;
          }
          // uncheckedCastNullableTToT is safe because bufferSize > 0.
        } else if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) < 0) {
          // Otherwise, we can ignore elem; we've seen k better elements.
          buffer[bufferSize++] = elem;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

            // Create circuit breaker with dynamic threshold enabled
            SmbCircuitBreaker dynamicCircuitBreaker = new SmbCircuitBreaker("dynamic-test", 5, 2, 1000, 3, true, false, 100);
    
            try {
                // Test threshold adjustment
                int initialThreshold = dynamicCircuitBreaker.getCurrentFailureThreshold();
                assertEquals(5, initialThreshold, "Initial threshold should be 5");
    
                // Update threshold
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/SmbCircuitBreaker.java

        }
    
        /**
         * Get current failure threshold (may be dynamically adjusted)
         *
         * @return current failure threshold
         */
        public int getCurrentFailureThreshold() {
            return failureThreshold;
        }
    
        /**
         * Update failure threshold (for dynamic adjustment)
         *
         * @param newThreshold the new failure threshold
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

       */
      @VisibleForTesting transient long[] entries;
    
      /** The load factor. */
      private transient float loadFactor;
    
      /** When we have this many elements, resize the hashtable. */
      private transient int threshold;
    
      /** Constructs a new empty instance of {@code ObjectCountHashMap}. */
      ObjectCountHashMap() {
        init(DEFAULT_SIZE, DEFAULT_LOAD_FACTOR);
      }
    
      ObjectCountHashMap(ObjectCountHashMap<? extends K> map) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

        }
    
        /**
         * Deletes old words based on a threshold date.
         * @param threshold The threshold date.
         * @return The SuggestDeleteResponse.
         */
        public SuggestDeleteResponse deleteOldWords(final ZonedDateTime threshold) {
            if (logger.isInfoEnabled()) {
                logger.info("Deleting old words: index={}, threshold={}", index, threshold);
            }
            final long start = System.currentTimeMillis();
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 34.4K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorBuilder.java

        private final CrawlerContainer crawlerContainer;
    
        /** MIME type of the content */
        private String mimeType;
    
        /** Filename of the content */
        private String filename;
    
        /** Cache file size threshold in bytes */
        private int cacheFileSize = 1_000_000;
    
        /** Name of the extractor to use */
        private String extractorName = "tikaExtractor";
    
        /** Maximum content length allowed */
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 10.1K bytes
    - Viewed (0)
Back to top