01: package com.completex.objective.components.persistency.datasource;
02:
03: import javax.sql.DataSource;
04:
05: /**
06: * @author Gennady Krizhevsky
07: */
08: public interface DataSourceFactory {
09:
10: /**
11: * Default maximum number of connections allowed
12: */
13: public static final int DEFAULT_MAX_CONNECTIONS = 100;
14:
15: /**
16: * Maximum pooled connections limit
17: */
18: public static final String PROP_MAX_CONNECTIONS = "maxConnections";
19: /**
20: * Timeout in ms on getting connection from pool
21: */
22: public static final String PROP_TIMEOUT = "timeout";
23:
24: DataSource newDataSource();
25: }
|