Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for shutdownNow (0.04 sec)

  1. guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

          Future<Boolean> getResult = executor.submit(() -> future.get());
    
          // Release the future value.
          latch.countDown();
    
          assertTrue(getResult.get(10, SECONDS));
        } finally {
          executor.shutdownNow();
        }
    
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
      }
    
      /** Tests that the {@link Future#get(long, TimeUnit)} method times out correctly. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/timer/TimeoutManager.java

                    if (logger.isDebugEnabled()) {
                        logger.debug("Interrupted.", e);
                    }
                } finally {
                    executorService.shutdownNow();
                }
            }
        }
    
        private void processTask(final ExecutorService executorService, final TimeoutTask task) {
            try {
                executorService.execute(() -> {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/audit/SecurityAuditLogger.java

            shutdown = true;
            logExecutor.shutdown();
            try {
                if (!logExecutor.awaitTermination(5, TimeUnit.SECONDS)) {
                    logExecutor.shutdownNow();
                }
            } catch (InterruptedException e) {
                logExecutor.shutdownNow();
                Thread.currentThread().interrupt();
            }
        }
    
        /**
         * Log a security event with performance optimizations
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

            Thread.sleep(1000)
            sendTestRequest(googleRequest)
            Thread.sleep(2000)
          }
        } finally {
          client.connectionPool.evictAll()
          client.dispatcher.executorService.shutdownNow()
    
          if (launch == CommandLine) {
            process?.destroyForcibly()
          }
        }
      }
    
      private fun sendTestRequest(request: Request) {
        try {
          if (this.launch != CommandLine) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/SmbWatchHandleTest.java

                    future.get(100, TimeUnit.MILLISECONDS);
                });
    
                // Cancel the future
                future.cancel(true);
            } finally {
                executor.shutdownNow();
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/Suggester.java

        }
    
        /**
         * Shuts down the thread pool.
         */
        public void shutdown() {
            threadPool.shutdownNow();
        }
    
        /**
         * Creates a new index if no index exists.
         * @return True if an index was created, false otherwise.
         */
        public boolean createIndexIfNothing() {
            try {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 20.7K bytes
    - Viewed (1)
  7. src/main/java/jcifs/util/SecureKeyManager.java

                if (rotationTask != null) {
                    rotationTask.cancel(false);
                    rotationTask = null;
                }
    
                // Shutdown rotation scheduler
                rotationScheduler.shutdownNow();
    
                clearAllKeys();
            } finally {
                // Wipe KeyStore password
                if (keyStorePassword != null) {
                    Arrays.fill(keyStorePassword, '\0');
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                }
            }
        }
    
        @Override
        public void dispose() {
            if (executor instanceof ExecutorService executorService) {
                executorService.shutdownNow();
            }
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 25K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java

                    if (logger.isDebugEnabled()) {
                        logger.debug("Interrupted.", e);
                    }
                } finally {
                    executorService.shutdownNow();
                }
            }
        }
    
        /**
         * Performs a search operation using rank fusion across available searchers.
         * If only one searcher is available, uses the main searcher. Otherwise, performs
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImpl.java

            } catch (final InterruptedException e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Failed to interrupt executor.", e);
                }
            } finally {
                executor.shutdownNow();
            }
    
            if (!deleteUrlList.isEmpty()) {
                deleteDocuments();
            }
            indexUpdateCallback.commit();
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 28.9K bytes
    - Viewed (0)
Back to top