Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 54 for shutdownNow (0.32 seconds)

  1. 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
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 26.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

         * run. We want to see what happens when it's interrupted, not when it's
         * rejected.
         */
        submitSuccessful.await();
        executorService.shutdownNow();
        abstractFuture.set(DATA1);
        assertThat(listenableFuture.get()).isEqualTo(DATA1);
        singleCallListener.waitForCall();
    
        assertTrue(singleCallListener.wasCalled());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  3. src/main/java/jcifs/util/AuthenticationRateLimiter.java

            log.info("Rate limiter state reset");
        }
    
        @Override
        public void close() {
            if (!closed.compareAndSet(false, true)) {
                return;
            }
    
            cleanupScheduler.shutdownNow();
            try {
                cleanupScheduler.awaitTermination(5, TimeUnit.SECONDS);
            } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.1K bytes
    - Click Count (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) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  5. src/test/java/jcifs/SmbWatchHandleTest.java

                    future.get(100, TimeUnit.MILLISECONDS);
                });
    
                // Cancel the future
                future.cancel(true);
            } finally {
                executor.shutdownNow();
            }
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.2K bytes
    - Click Count (1)
  6. 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');
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 21.5K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/suggest/Suggester.java

         * Shuts down the thread pool.
         */
        public void shutdown() {
            if (logger.isInfoEnabled()) {
                logger.info("Shutting down suggester: index={}", index);
            }
            threadPool.shutdownNow();
        }
    
        /**
         * Creates a new index if no index exists.
         * @return True if an index was created, false otherwise.
         */
        public boolean createIndexIfNothing() {
            try {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 21.6K bytes
    - Click Count (3)
  8. guava-tests/test/com/google/common/io/MoreFilesTest.java

                // any circumstances
                assertEquals(3, MoreFiles.listFiles(symlinkTarget).size());
    
                Thread.yield();
              }
            } finally {
              executor.shutdownNow();
            }
    
            switcher.get(); // to check for (extremely unlikely) exceptions
          }
        }
      }
    
      public void testDeleteRecursively_nonDirectoryFile() throws IOException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                }
            }
        }
    
        @Override
        public void dispose() {
            if (executor instanceof ExecutorService executorService) {
                executorService.shutdownNow();
            }
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 25K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

                // any circumstances
                assertEquals(3, MoreFiles.listFiles(symlinkTarget).size());
    
                Thread.yield();
              }
            } finally {
              executor.shutdownNow();
            }
    
            switcher.get(); // to check for (extremely unlikely) exceptions
          }
        }
      }
    
      public void testDeleteRecursively_nonDirectoryFile() throws IOException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 26.6K bytes
    - Click Count (0)
Back to Top