Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for newSingleThreadScheduledExecutor (0.12 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      public void testScheduleAsync_asyncCallable_nullInsteadOfFuture() throws Exception {
        ExecutorService service = newSingleThreadScheduledExecutor();
        ListenableFuture<?> chainedFuture =
            scheduleAsync(() -> null, 1, NANOSECONDS, newSingleThreadScheduledExecutor());
        ExecutionException expected = assertThrows(ExecutionException.class, () -> chainedFuture.get());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      public void testScheduleAsync_asyncCallable_nullInsteadOfFuture() throws Exception {
        ExecutorService service = newSingleThreadScheduledExecutor();
        ListenableFuture<?> chainedFuture =
            scheduleAsync(() -> null, 1, NANOSECONDS, newSingleThreadScheduledExecutor());
        ExecutionException expected = assertThrows(ExecutionException.class, () -> chainedFuture.get());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

            this.fileCache = new ConcurrentHashMap<>();
            this.lock = new ReentrantReadWriteLock();
    
            // Start cleanup executor for expired leases
            this.cleanupExecutor = Executors.newSingleThreadScheduledExecutor(r -> {
                Thread t = new Thread(r, "LeaseManager-Cleanup");
                t.setDaemon(true);
                return t;
            });
    
            // Schedule periodic cleanup
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  4. src/main/java/jcifs/util/SecureKeyManager.java

        private final Map<String, Integer> keyVersions = new ConcurrentHashMap<>();
        private final java.util.concurrent.ScheduledExecutorService rotationScheduler =
                java.util.concurrent.Executors.newSingleThreadScheduledExecutor(r -> {
                    Thread t = new Thread(r, "SecureKeyManager-Rotation");
                    t.setDaemon(true);
                    return t;
                });
    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)
  5. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

          @Override
          public Thread newThread(Runnable runnable) {
            return MoreExecutors.newThread(serviceName(), runnable);
          }
        }
        ScheduledExecutorService executor =
            Executors.newSingleThreadScheduledExecutor(new ThreadFactoryImpl());
        // Add a listener to shut down the executor after the service is stopped. This ensures that the
        // JVM shutdown will not be prevented from exiting after this service has stopped or failed.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 27.7K bytes
    - Click Count (0)
Back to Top