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, loadSpyDriver
protected boolean readOnly
protected ScheduledExecutorService connectionTimeoutExecutor
public DefaultConnectionFactory(Map properties, boolean readOnly)
public Connection requestConnection() throws SQLException
ConnectionFactoryIF
requestConnection
in interface ConnectionFactoryIF
requestConnection
in class AbstractConnectionFactory
SQLException
protected Connection applyTimeout(Connection connection)
public void close()
ConnectionFactoryIF
close
in interface ConnectionFactoryIF
close
in class AbstractConnectionFactory