197198199200201202203
public void setMaxConnections(int maxConnections) { this.maxConnections = maxConnections; } protected ObjectPoolFactory createPoolFactory() { return new GenericObjectPoolFactory(null, maximumActive); }
147148149150151152153
public void setMaximumActive(int maximumActive) { this.maximumActive = maximumActive; } protected ObjectPoolFactory createPoolFactory() { return new GenericObjectPoolFactory(null, maximumActive); }
230231232233234235236237238239
ObjectPool getPool() { if (workers == null) { // create pool PoolableObjectFactory objectFactory = new AuthorityPoolableObjectFactory(); ObjectPoolFactory poolFactory = new GenericObjectPoolFactory(objectFactory, poolConfig); this.setPool(poolFactory.createPool()); } return workers; }
190191192193194195196