/** * The Pool can be Enabled and Disabled. Disabling the pool * closes all the outstanding Unused connections and any new * connections will be closed upon release. * * @param flag Control the Connection Pool. * If it is enabled then Connections will actuall be held * around. If disabled then all unused connections will be instantly * closed and as connections are released they are closed and removed * from the pool. * * */ public void setPoolEnabled( boolean flag ) { m_IsActive = flag; if ( ! flag ) freeUnused(); }
/** * The Pool can be Enabled and Disabled. Disabling the pool * closes all the outstanding Unused connections and any new * connections will be closed upon release. * * @param flag Control the Connection Pool. * If it is enabled then Connections will actuall be held * around. If disabled then all unused connections will be instantly * closed and as connections are released they are closed and removed * from the pool. * * */ public void setPoolEnabled( boolean flag ) { m_IsActive = flag; if ( ! flag ) freeUnused(); }
/** * The Pool can be Enabled and Disabled. Disabling the pool * closes all the outstanding Unused connections and any new * connections will be closed upon release. * * @param flag Control the Connection Pool. * If it is enabled then Connections will actuall be held * around. If disabled then all unused connections will be instantly * closed and as connections are released they are closed and removed * from the pool. * * */ public void setPoolEnabled( boolean flag ) { m_IsActive = flag; if ( ! flag ) freeUnused(); }
/** * The Pool can be Enabled and Disabled. Disabling the pool * closes all the outstanding Unused connections and any new * connections will be closed upon release. * * @param flag Control the Connection Pool. * If it is enabled then Connections will actuall be held * around. If disabled then all unused connections will be instantly * closed and as connections are released they are closed and removed * from the pool. * * */ public void setPoolEnabled( boolean flag ) { m_IsActive = flag; if ( ! flag ) freeUnused(); }