- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getRetryDelayMs (0.17 sec)
-
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
assertFalse(exception.shouldRetry(3)); // Max attempts reached // Verify exponential backoff assertEquals(1000, exception.getRetryDelayMs(1)); assertEquals(2000, exception.getRetryDelayMs(2)); assertEquals(4000, exception.getRetryDelayMs(3)); } @Test @DisplayName("Should handle no retry policy") void testNoRetryPolicy() { // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbOperationException.java
} /** * Get the delay before next retry * * @param attemptNumber the current attempt number * @return delay in milliseconds */ public long getRetryDelayMs(int attemptNumber) { return retryPolicy.getDelayMs(attemptNumber); } /** * Add context information * * @param key the context key * @param value the context value
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.5K bytes - Viewed (0)