- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 73 for Threshold (1.05 sec)
-
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: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 17.8K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/io/ContentOutputStream.java
/** * Constructs a ContentOutputStream with a specified threshold and temporary directory. * * @param threshold the threshold in bytes for writing to memory before writing to a file * @param tmpDir the temporary directory to create the file in */ public ContentOutputStream(final int threshold, final File tmpDir) { super(threshold, PREFIX, SUFFIX, tmpDir); } @Override
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 3.4K bytes - Viewed (0) -
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
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: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 8.8K bytes - Viewed (0) -
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 31 13:15:26 UTC 2025 - 11.4K bytes - Viewed (0) -
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 33.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
int chunk2 = dataSize - chunk1; // Write just enough to not trip the threshold if (chunk1 > 0) { write(out, data, 0, chunk1, singleByte); assertTrue(ByteSource.wrap(data).slice(0, chunk1).contentEquals(source)); } File file = out.getFile(); assertNull(file); // Write data to go over the threshold if (chunk2 > 0) { if (JAVA_IO_TMPDIR.value().equals("/sdcard")) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 5.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
int chunk2 = dataSize - chunk1; // Write just enough to not trip the threshold if (chunk1 > 0) { write(out, data, 0, chunk1, singleByte); assertTrue(ByteSource.wrap(data).slice(0, chunk1).contentEquals(source)); } File file = out.getFile(); assertNull(file); // Write data to go over the threshold if (chunk2 > 0) { if (JAVA_IO_TMPDIR.value().equals("/sdcard")) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaConfigurationTest.java
assertEquals("auto", config.getRdmaProvider(), "Default provider should be auto"); assertEquals(8192, config.getRdmaReadWriteThreshold(), "Default threshold should be 8KB"); assertEquals(65536, config.getRdmaMaxSendSize(), "Default max send size should be 64KB"); assertEquals(65536, config.getRdmaMaxReceiveSize(), "Default max receive size should be 64KB");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 5.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/compression/CompressionService.java
*/ double estimateCompressionRatio(byte[] data, int algorithm); /** * Gets the minimum data size threshold for compression. * Data smaller than this threshold should not be compressed. * * @return minimum size in bytes for compression to be beneficial */ int getMinCompressionSize(); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.2K bytes - Viewed (0)