Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Retry (0.02 sec)

  1. src/main/java/jcifs/smb/SmbOperationException.java

        }
    
        /**
         * Check if retry should be attempted
         *
         * @param attemptNumber the current attempt number
         * @return true if retry should be attempted
         */
        public boolean shouldRetry(int attemptNumber) {
            return retryPolicy.shouldRetry(this, attemptNumber);
        }
    
        /**
         * Get the delay before next retry
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/SmbException.java

        }
    
        /**
         * Checks if retry should be attempted
         *
         * @return true if retry is recommended
         */
        public boolean shouldRetry() {
            return severity == Severity.RECOVERABLE || severity == Severity.TRANSIENT;
        }
    
        /**
         * Gets recommended retry delay in milliseconds
         *
         * @return retry delay or 0 if no retry
         */
        public long getRetryDelay() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/rdma/RdmaErrorHandler.java

    /**
     * RDMA error handling and recovery logic.
     *
     * This class provides centralized error handling for RDMA operations,
     * including retry logic and fallback mechanisms.
     */
    public class RdmaErrorHandler {
    
        private static final Logger log = LoggerFactory.getLogger(RdmaErrorHandler.class);
    
        // Retry and timing constants (in ms)
        private static final long MAX_RETRY_DELAY = 10000; // 10 seconds maximum delay
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTreeConnection.java

                }
    
                try (SmbTreeHandle th = connectWrapException(loc)) {
                    log.debug("Have new tree connection for retry");
                } catch (final SmbException e) {
                    log.debug("Failed to connect tree on retry", e);
                    last = e;
                }
            }
    
            if (last != null) {
                log.debug("All attempts have failed, last exception", last);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  5. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            assertEquals(original.getMessage(), retry.getMessage());
            assertEquals(original.getCause(), retry.getCause());
            assertNotNull(retry.getContext());
        }
    
        @Test
        @DisplayName("Should format message correctly")
        void testMessageFormatting() {
            // With custom message
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

            when(mockConfig.getNetbiosSoTimeout()).thenReturn(100); // Very short timeout
            when(mockConfig.getNetbiosRetryTimeout()).thenReturn(50); // Very short retry
            when(mockConfig.getNetbiosRetryCount()).thenReturn(1); // Single retry only
            when(mockConfig.getNetbiosLocalPort()).thenReturn(0);
            when(mockConfig.getNetbiosLocalAddress()).thenReturn(InetAddress.getByName("127.0.0.1"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            // Retry logic for delete operation
            boolean deleted = false;
            for (int i = 0; i < 3 && !deleted; i++) {
                try {
                    fileToDelete.delete();
                    deleted = true;
                } catch (SmbException e) {
                    if (i < 2 && e.getMessage().contains("handle")) {
                        log.debug("Retry delete attempt {} after handle error", i + 1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  8. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/client/FesenClient.java

        }
    
        /**
         * Sets the retry interval in milliseconds.
         *
         * @param retryInterval The retry interval.
         */
        public void setRetryInterval(final long retryInterval) {
            this.retryInterval = retryInterval;
        }
    
        /**
         * Sets the maximum retry count.
         *
         * @param maxRetryCount The maximum retry count.
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Aug 31 05:32:52 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  9. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

            // 15
            "event\r\n".encodeUtf8(),
            // 16
            "event\r".encodeUtf8(),
            // 17
            "event\n".encodeUtf8(),
            // 18
            "retry: ".encodeUtf8(),
            // 19
            "retry:".encodeUtf8(),
          )
    
        private val CRLF = "\r\n".encodeUtf8()
    
        @Throws(IOException::class)
        private fun BufferedSource.readData(data: Buffer) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/http/NtlmHttpFilter.java

                        this.dcList[i] = null;
                    }
                }
    
                /*
                 * No DCs found, for retieval of list by expiring it and retry.
                 */
                this.dcListExpiration = 0;
            } while (retry-- > 0);
    
            this.dcListExpiration = now + 1000 * 60 * 15; /* 15 min */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.3K bytes
    - Viewed (0)
Back to top