public class DefaultConnectionFactory extends AbstractConnectionFactory
| Modifier and Type | Field and Description |
|---|---|
protected ScheduledExecutorService |
connectionTimeoutExecutor |
protected boolean |
readOnly |
connstring, driver, password, properties, timeout, username| Constructor and Description |
|---|
DefaultConnectionFactory(Map properties,
boolean readOnly) |
| Modifier and Type | Method and Description |
|---|---|
protected Connection |
applyTimeout(Connection connection) |
void |
close()
INTERNAL: Closes the connection factory.
|
Connection |
requestConnection()
INTERNAL: Requests a new connection object.
|
getConnectionString, getDriver, getPassword, getUserName, loadSpyDriverprotected boolean readOnly
protected ScheduledExecutorService connectionTimeoutExecutor
public DefaultConnectionFactory(Map properties, boolean readOnly)
public Connection requestConnection() throws SQLException
ConnectionFactoryIFrequestConnection in interface ConnectionFactoryIFrequestConnection in class AbstractConnectionFactorySQLExceptionprotected Connection applyTimeout(Connection connection)
public void close()
ConnectionFactoryIFclose in interface ConnectionFactoryIFclose in class AbstractConnectionFactory