Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for setMaxPoolSize (0.09 seconds)

  1. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

            }
        }
    
        /**
         * Set the maximum pool size
         * @param size the maximum number of connections in the pool
         */
        public void setMaxPoolSize(int size) {
            if (size <= 0) {
                throw new IllegalArgumentException("Pool size must be positive");
            }
            this.maxPoolSize = size;
            log.info("Set maximum pool size to {}", size);
    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)
  2. src/test/java/jcifs/smb/CriticalPerformanceTest.java

         */
        @Test
        public void testConnectionPoolConcurrentPerformance() throws Exception {
            SmbTransportPoolImpl pool = new SmbTransportPoolImpl();
            pool.setMaxPoolSize(100);
    
            int threadCount = 20;
            int operationsPerThread = 100;
            ExecutorService executor = Executors.newFixedThreadPool(threadCount);
            CountDownLatch startLatch = new CountDownLatch(1);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 15.3K bytes
    - Click Count (0)
Back to Top