Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for newScheduledThreadPool (0.12 sec)

  1. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

            this.context = context;
            this.handles = new ConcurrentHashMap<>();
            this.guidToHandle = new ConcurrentHashMap<>();
            this.scheduler = Executors.newScheduledThreadPool(1, r -> {
                Thread t = new Thread(r, "PersistentHandleManager");
                t.setDaemon(true);
                return t;
            });
    
            // Create state directory for persistent storage
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

            this.baseLeaseManager = leaseManager;
            this.directoryCache = new ConcurrentHashMap<>();
            this.leaseToPath = new ConcurrentHashMap<>();
            this.scheduler = Executors.newScheduledThreadPool(1);
            this.changeNotifier = new DirectoryChangeNotifier(this);
    
            // Schedule periodic cache cleanup
            scheduler.scheduleAtFixedRate(this::cleanupExpiredEntries, 60, 60, TimeUnit.SECONDS);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/witness/WitnessClient.java

            this.registrations = new ConcurrentHashMap<>();
            this.listeners = new ConcurrentHashMap<>();
            this.asyncNotifyTasks = new ConcurrentHashMap<>();
            this.scheduler = Executors.newScheduledThreadPool(3); // Increased for async notifications
            this.rpcClient = rpcClient;
    
            // Schedule periodic tasks
            schedulePeriodicTasks();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

    import static com.google.common.util.concurrent.Uninterruptibles.tryLockUninterruptibly;
    import static java.util.concurrent.Executors.newFixedThreadPool;
    import static java.util.concurrent.Executors.newScheduledThreadPool;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.base.Preconditions;
    import com.google.common.base.Stopwatch;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/MultiChannelManager.java

                Thread t = new Thread(r, "SMB3-MultiChannel-Worker");
                t.setDaemon(true);
                return t;
            });
    
            this.healthCheckExecutor = Executors.newScheduledThreadPool(2, r -> {
                Thread t = new Thread(r, "SMB3-MultiChannel-HealthCheck");
                t.setDaemon(true);
                return t;
            });
    
            // Start health check task
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  6. docs/smb3-features/04-directory-leasing-design.md

            this.baseLeaseManager = leaseManager;
            this.directoryCache = new ConcurrentHashMap<>();
            this.leaseToPath = new ConcurrentHashMap<>();
            this.scheduler = Executors.newScheduledThreadPool(1);
            this.changeNotifier = new DirectoryChangeNotifier(this);
            
            // Schedule periodic cache cleanup
            scheduler.scheduleAtFixedRate(this::cleanupExpiredEntries, 60, 60, TimeUnit.SECONDS);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  7. docs/recipes.md

    === ":material-language-kotlin: Kotlin"
        ```kotlin
          private val executor = Executors.newScheduledThreadPool(1)
          private val client = OkHttpClient()
    
          fun run() {
            val request = Request.Builder()
                .url("http://httpbin.org/delay/2") // This URL is served with a 2 second delay.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

            this.session = session;
            this.channels = new ConcurrentHashMap<>();
            this.localInterfaces = new ArrayList<>();
            this.remoteInterfaces = new ArrayList<>();
            this.scheduler = Executors.newScheduledThreadPool(2, r -> {
                Thread t = new Thread(r, "MultiChannelScheduler");
                t.setDaemon(true);
                return t;
            });
            this.loadBalancer = new ChannelLoadBalancer(this);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/SmbCircuitBreaker.java

            // Initialize scheduler for dynamic threshold adjustment
            this.scheduler =
                    dynamicThresholdEnabled ? Executors.newScheduledThreadPool(1, r -> new Thread(r, "SmbCircuitBreaker-" + name)) : null;
    
            // Start dynamic threshold adjustment if enabled
            if (dynamicThresholdEnabled) {
                startDynamicThresholdAdjustment();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

      private var client =
        clientTestRule
          .newClientBuilder()
          .eventListenerFactory(clientTestRule.wrap(listener))
          .build()
      private val executorService = Executors.newScheduledThreadPool(1)
    
      @BeforeEach
      fun setUp() {
        platform.assumeNotOpenJSSE()
        platform.assumeHttp2Support()
      }
    
      @AfterEach
      fun tearDown() {
        executorService.shutdown()
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 24.8K bytes
    - Viewed (0)
Back to top