- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for incrementRetry (0.37 seconds)
-
src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java
log.debug("Operation failed during redistribution: {}", error.getMessage()); } private void scheduleRecovery(ChannelInfo channel, FailoverState state) { state.incrementRetry(); // For test purposes, execute recovery immediately without delay // In production, this might use the delay from getNextRetryTime() executor.submit(() -> attemptRecovery(channel, state));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 11.6K bytes - Click Count (0) -
docs/smb3-features/03-multi-channel-design.md
} public boolean shouldRetry() { return retryCount < 3 && System.currentTimeMillis() >= nextRetryTime; } public void incrementRetry() { retryCount++; // Exponential backoff: 1s, 2s, 4s nextRetryTime = System.currentTimeMillis() + (1000L << retryCount); } }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 39.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java
// Should allow retries up to limit assertTrue(state.shouldRetry()); state.incrementRetry(); // Retry 1 assertTrue(state.shouldRetry()); state.incrementRetry(); // Retry 2 assertTrue(state.shouldRetry()); state.incrementRetry(); // Retry 3 assertFalse(state.shouldRetry()); // Max retries reached } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 7.7K bytes - Click Count (0)