- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 22 for No_Retry (0.11 seconds)
-
src/test/java/jcifs/smb/RequestParamTest.java
values, "values() order should match declaration order"); } // Happy path: valueOf resolves each constant name; toString equals name; ordinal is stable @ParameterizedTest @ValueSource(strings = { "NONE", "NO_TIMEOUT", "NO_RETRY", "RETAIN_PAYLOAD" })
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.2K bytes - Click Count (0) -
src/main/java/jcifs/smb/RequestParam.java
* No special request parameters. */ NONE, /** * Wait indefinitely for a response */ NO_TIMEOUT, /** * Do not retry request on failure */ NO_RETRY, /** * Save the raw payload for further inspection */ RETAIN_PAYLOADCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
assertEquals(3.0, conservativePolicy.getBackoffMultiplier()); assertTrue(conservativePolicy.isExponentialBackoff()); // NO_RETRY policy SmbOperationException.RetryPolicy noRetryPolicy = SmbOperationException.RetryPolicy.NO_RETRY; assertEquals(1, noRetryPolicy.getMaxAttempts()); assertEquals(0, noRetryPolicy.getInitialDelayMs()); assertEquals(0, noRetryPolicy.getMaxDelayMs());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbOperationException.java
public static final RetryPolicy AGGRESSIVE = new RetryPolicy(5, 500, 60000, 1.5, true); public static final RetryPolicy CONSERVATIVE = new RetryPolicy(2, 2000, 10000, 3.0, true); public static final RetryPolicy NO_RETRY = new RetryPolicy(1, 0, 0, 1.0, false); public RetryPolicy(int maxAttempts, long initialDelayMs, long maxDelayMs, double backoffMultiplier, boolean exponentialBackoff) { this.maxAttempts = maxAttempts;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
verify(resp, atLeastOnce()).reset(); // Verify disconnect was called on retry verify(c, atLeastOnce()).disconnect(eq(true)); } @Test @DisplayName("send honors NO_RETRY and propagates error immediately") void send_noRetry_param() throws Exception { SmbTreeConnection c = newConn(); SmbTreeImpl tree = mock(SmbTreeImpl.class);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 13K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
when(peek.getReadDataAvailable()).thenReturn(7); when(ioResp.getOutputData()).thenReturn(peek); when(tree.send(any(Smb2IoctlRequest.class), eq(RequestParam.NO_RETRY))).thenReturn(ioResp); // Act int available = stream.available(); // Assert assertEquals(7, available, "Should return available bytes reported by server");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
when(tree.send(eq(request), eq(RequestParam.NO_TIMEOUT), eq(RequestParam.NO_RETRY))).thenReturn(response); // Act CommonServerMessageBlockResponse out = tree.send(request, RequestParam.NO_TIMEOUT, RequestParam.NO_RETRY); // Assert assertSame(response, out); verify(tree).send(request, RequestParam.NO_TIMEOUT, RequestParam.NO_RETRY); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 18.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
.thenReturn(resp); CommonServerMessageBlockResponse out = handle.send(req, RequestParam.NO_RETRY); assertSame(resp, out); verify(treeConnection, times(1)).send(eq(resourceLoc), eq((CommonServerMessageBlockRequest) req), isNull(), any(RequestParam[].class)); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.4K bytes - Click Count (0)