Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for scheduleWithFixedDelay (0.16 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

       * @author Luke Sandberg
       * @since 11.0
       */
      public abstract static class Scheduler {
        /**
         * Returns a {@link Scheduler} that schedules the task using the {@link
         * ScheduledExecutorService#scheduleWithFixedDelay} method.
         *
         * @param initialDelay the time to delay first execution
         * @param delay the delay between the termination of one execution and the commencement of the
         *     next
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.7K bytes
    - Viewed (0)
  3. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  4. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  6. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  7. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  9. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
Back to top