Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 247 for InterruptedException (0.1 sec)

  1. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

        // Test executeSuggestCreator with interrupted exception
        public void test_executeSuggestCreator_withInterruptedException() {
            createRequiredDirectories();
            mockProcessHelper.setThrowException(new InterruptedException("Interrupted"));
    
            try {
                suggestJob.executeSuggestCreator();
                // In test environment, exception handling may vary
            } catch (JobProcessingException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            DirectoryCacheEntry entry = directoryLeaseManager.getCacheEntry(directoryPath);
            entry.setMaxAge(1); // 1ms to expire immediately
            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {
                // Ignore
            }
    
            // When lease is lost, cache entry should be removed
            when(baseLeaseManager.getLease(leaseKey)).thenReturn(null);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/ResourceManager.java

            cleanupExecutor.shutdown();
            try {
                if (!cleanupExecutor.awaitTermination(5, TimeUnit.SECONDS)) {
                    cleanupExecutor.shutdownNow();
                }
            } catch (InterruptedException e) {
                cleanupExecutor.shutdownNow();
                Thread.currentThread().interrupt();
            }
    
            // Log final statistics
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/AuthenticationRateLimiter.java

                return;
            }
    
            cleanupScheduler.shutdownNow();
            try {
                cleanupScheduler.awaitTermination(5, TimeUnit.SECONDS);
            } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
                log.warn("Interrupted while shutting down cleanup scheduler", e);
            }
    
            log.info("Authentication rate limiter closed");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

                // Then
                assertEquals(4, bytesRead);
            }
    
            @Test
            @DisplayName("Should handle concurrent access safely")
            void testConcurrentAccess() throws InterruptedException {
                // Given
                byte[] buffer1 = new byte[10];
                byte[] buffer2 = new byte[10];
                SMBUtil.writeInt2(4, buffer1, 0);
                SMBUtil.writeInt2(4, buffer2, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/exec/SuggestCreator.java

                    exitCode.set(1);
                    latch.countDown();
                });
    
                try {
                    latch.await();
                } catch (final InterruptedException ignore) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("Interrupted.", ignore);
                    }
                    exitCode.set(1);
                }
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 11K bytes
    - Viewed (0)
  7. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

                processResponse(response, hostname, responses, failures)
                latch.countDown()
              }
            },
          )
        }
    
        try {
          latch.await()
        } catch (e: InterruptedException) {
          failures.add(e)
        }
      }
    
      private fun processResponse(
        response: Response,
        hostname: String,
        results: MutableList<InetAddress>,
        failures: MutableList<Exception>,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTransportImpl.java

            log.trace("Read negotiate response");
        }
    
        /**
         * @param first
         * @param n
         * @return
         * @throws IOException
         * @throws SocketException
         * @throws InterruptedException
         */
        private SmbNegotiation negotiate2(final Smb2NegotiateResponse first) throws IOException, SocketException {
            final int size = 0;
    
            final int securityMode = getRequestSecurityMode(first);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            assertEquals(SmbComTransaction.TRANS2_SET_FILE_INFORMATION, customResponse.getSubCommand());
        }
    
        @Test
        @DisplayName("Test concurrent access")
        void testConcurrentAccess() throws InterruptedException {
            // Test thread safety - multiple threads accessing the same response
            final int THREAD_COUNT = 10;
            Thread[] threads = new Thread[THREAD_COUNT];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFileInputStream.java

            Throwable root = se.getCause();
            if (root instanceof TransportException) {
                ioe = (TransportException) root;
                root = ioe.getCause();
            }
            if (root instanceof InterruptedException) {
                ioe = new InterruptedIOException(root.getMessage());
                ioe.initCause(root);
            }
            return ioe;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
Back to top