Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for scheduleWithFixedDelay (0.09 sec)

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

        assertExecutionException(future, ex);
        assertEquals(5, runnable.count);
        assertEquals(0, delegate.getQueue().size());
    
        runnable = new ThrowingRunnable(5, ex);
        future = service.scheduleWithFixedDelay(runnable, 1, 1, MILLISECONDS);
        assertExecutionException(future, ex);
        assertEquals(5, runnable.count);
        assertEquals(0, delegate.getQueue().size());
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 26.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/ResourceManager.java

         * Start the cleanup task
         */
        private void startCleanupTask() {
            if (cleanupTask != null) {
                cleanupTask.cancel(false);
            }
    
            cleanupTask = cleanupExecutor.scheduleWithFixedDelay(() -> {
                try {
                    checkForLeaks();
                    performCleanup();
                } catch (Exception e) {
                    log.error("Error during resource cleanup", e);
                }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/AuthenticationRateLimiter.java

                Thread t = new Thread(r, "AuthRateLimiter-Cleanup");
                t.setDaemon(true);
                return t;
            });
    
            cleanupScheduler.scheduleWithFixedDelay(this::cleanup, cleanupInterval.toMillis(), cleanupInterval.toMillis(),
                    TimeUnit.MILLISECONDS);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/MultiChannelManager.java

                throw new CIFSException("Failed to create CIFSContext for multi-channel transport", e);
            }
        }
    
        private void startHealthCheckTask() {
            healthCheckExecutor.scheduleWithFixedDelay(this::performHealthCheck, healthCheckInterval, healthCheckInterval,
                    TimeUnit.MILLISECONDS);
        }
    
        private void performHealthCheck() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

            if (cleanupInterval <= 0) {
                cleanupInterval = DEFAULT_LEASE_CLEANUP_INTERVAL;
            }
    
            final long finalCleanupInterval = cleanupInterval;
            this.cleanupExecutor.scheduleWithFixedDelay(() -> cleanupExpiredLeases(finalCleanupInterval * 2), cleanupInterval, cleanupInterval,
                    TimeUnit.MILLISECONDS);
        }
    
        /**
         * Lease entry containing lease state information
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/MoreExecutors.java

        }
    
        @Override
        public ListenableScheduledFuture<?> scheduleWithFixedDelay(
            Runnable command, long initialDelay, long delay, TimeUnit unit) {
          NeverSuccessfulListenableFutureTask task = new NeverSuccessfulListenableFutureTask(command);
          ScheduledFuture<?> scheduled =
              delegate.scheduleWithFixedDelay(task, initialDelay, delay, unit);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 08 18:55:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/SmbCircuitBreaker.java

            }
            log.info("[{}] Circuit breaker closed and resources cleaned up", name);
        }
    
        private void startDynamicThresholdAdjustment() {
            thresholdAdjustmentTask = scheduler.scheduleWithFixedDelay(this::performDynamicThresholdAdjustment, 30, 30, TimeUnit.SECONDS);
            log.debug("[{}] Started dynamic threshold adjustment task", name);
        }
    
        private void performDynamicThresholdAdjustment() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/SecureKeyManager.java

            if (rotationTask != null) {
                rotationTask.cancel(false);
            }
    
            // Schedule new rotation task
            if (intervalMillis > 0) {
                rotationTask = rotationScheduler.scheduleWithFixedDelay(this::rotateExpiredKeys, intervalMillis, intervalMillis,
                        java.util.concurrent.TimeUnit.MILLISECONDS);
                log.info("Key rotation configured with interval: {} ms", intervalMillis);
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

         * Start proactive health checking
         */
        private void startProactiveHealthChecking() {
            if (proactiveHealthCheckEnabled && healthCheckTask == null) {
                healthCheckTask = healthCheckExecutor.scheduleWithFixedDelay(this::performProactiveHealthCheck, proactiveCheckInterval,
                        proactiveCheckInterval, TimeUnit.MILLISECONDS);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
Back to top