Package org.xmlBlaster.util.pool

Examples of org.xmlBlaster.util.pool.PoolManager


            idleToErase = glob.getProperty().get("JdbcPool.idleToEraseTimeout", 10*60*1000L); // How long does an unused connection survive (10 min)

         this.maxResourceExhaustRetries = glob.getProperty().get("JdbcPool.maxResourceExhaustRetries", 5);
         resourceExhaustSleepGap = glob.getProperty().get("JdbcPool.resourceExhaustSleepGap", 1000);   // milli

         poolManager = new PoolManager(ME, this, maxInstances, busyToIdle, idleToErase);
         if (this.eraseUnusedPoolTimeout >= 1000L)
            synchronized(this.timeoutMonitor) {
               this.timeoutHandle = this.poolManager.getTransistionTimer().addTimeoutListener(this, this.eraseUnusedPoolTimeout, "dummy");
            }
      }
View Full Code Here


      long idleToErase = this.info.getLong("db.idleToEraseTimeout", 120*60*1000L);
      this.maxResourceExhaustRetries = this.info.getInt("db.maxResourceExhaustRetries", 5);
      // millis
      this.resourceExhaustSleepGap = this.info.getLong("db.resourceExhaustSleepGap", 1000);
      initDrivers();
      this.poolManager = new PoolManager("DbPool", this, maxInstances, busyToIdle, idleToErase);
      this.initCount++;
      String createInterceptorClass = info.get("db.createInterceptor.class", null);
      if (createInterceptorClass != null) {
         ClassLoader cl = this.getClass().getClassLoader();
         try {
View Full Code Here

    */
   class TestPool implements I_PoolManager {
      private int counter = 0;
      PoolManager poolManager;
      TestPool(int maxInstances, long busyToIdle, long idleToErase) {
         poolManager = new PoolManager(ME, this, maxInstances, busyToIdle, idleToErase);
      }
View Full Code Here

TOP

Related Classes of org.xmlBlaster.util.pool.PoolManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.