Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getRetryDelayMs (1.08 sec)

  1. 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)
  2. 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)
Back to top