Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for newScheduledThreadPool (0.09 sec)

  1. 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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  2. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  3. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  4. docs/smb3-features/02-persistent-handles-design.md

            this.context = context;
            this.handles = new ConcurrentHashMap<>();
            this.guidToHandle = new ConcurrentHashMap<>();
            this.scheduler = Executors.newScheduledThreadPool(1);
            
            // Create state directory for persistent storage
            String homeDir = System.getProperty("user.home");
            this.stateDirectory = Paths.get(homeDir, ".jcifs", "handles");
            try {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  5. docs/smb3-features/03-multi-channel-design.md

            this.session = session;
            this.channels = new ConcurrentHashMap<>();
            this.localInterfaces = new ArrayList<>();
            this.remoteInterfaces = new ArrayList<>();
            this.scheduler = Executors.newScheduledThreadPool(2);
            this.loadBalancer = new ChannelLoadBalancer(this);
            this.failover = new ChannelFailover(this);
            
            Configuration config = context.getConfig();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  6. docs/smb3-features/06-witness-protocol-design.md

            this.port = DEFAULT_WITNESS_PORT;
            this.context = context;
            this.registrations = new ConcurrentHashMap<>();
            this.listeners = new ConcurrentHashMap<>();
            this.scheduler = Executors.newScheduledThreadPool(2);
            this.rpcClient = new WitnessRpcClient(witnessServer, context);
            
            // Schedule periodic tasks
            schedulePeriodicTasks();
        }
        
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
Back to top