Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for newSingleThreadScheduledExecutor (0.17 seconds)

  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/util/AuthenticationRateLimiter.java

            this.lockoutDuration = lockoutDuration;
            this.cleanupInterval = cleanupInterval;
    
            // Start cleanup scheduler
            this.cleanupScheduler = Executors.newSingleThreadScheduledExecutor(r -> {
                Thread t = new Thread(r, "AuthRateLimiter-Cleanup");
                t.setDaemon(true);
                return t;
            });
    
    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. src/main/java/jcifs/util/ResourceManager.java

                Thread t = new Thread(r, "ResourceManager-Cleanup");
                t.setDaemon(true);
                return t;
            };
            cleanupExecutor = Executors.newSingleThreadScheduledExecutor(threadFactory);
    
            // Add shutdown hook for cleanup
            Runtime.getRuntime().addShutdownHook(new Thread(this::shutdown, "ResourceManager-Shutdown"));
    
            startCleanupTask();
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 16.2K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

        private long lastHealthCheck = System.currentTimeMillis();
    
        // Advanced health monitoring
        private final ScheduledExecutorService healthCheckExecutor = Executors.newSingleThreadScheduledExecutor(r -> {
            Thread t = new Thread(r, "SmbTransportPool-HealthCheck");
            t.setDaemon(true);
            return t;
        });
        private ScheduledFuture<?> healthCheckTask;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 33.4K bytes
    - Click Count (0)
  6. 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)
  7. 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)
  8. 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