@ComponentProfile(summary="Build a connection pool using C3P0 with some debug enabled") public class DebugPoolFactory extends DefaultPoolFactory
In the adapter configuration file this class is aliased as jdbc-debug-pool-factory which is the preferred alternative to the fully qualified classname when building your configuration.
logger
Constructor and Description |
---|
DebugPoolFactory() |
Modifier and Type | Method and Description |
---|---|
com.mchange.v2.c3p0.ComboPooledDataSource |
create() |
java.lang.Boolean |
getDebugUnreturnedConnectionStackTraces() |
TimeInterval |
getUnreturnedConnectionTimeout() |
void |
setDebugUnreturnedConnectionStackTraces(java.lang.Boolean onOff) |
void |
setUnreturnedConnectionTimeout(TimeInterval interval) |
DebugPoolFactory |
withDebugUnreturnedConnectionStackTraces(java.lang.Boolean b) |
DebugPoolFactory |
withUnreturnedConnectionTimeout(TimeInterval interval) |
build
public com.mchange.v2.c3p0.ComboPooledDataSource create() throws java.lang.Exception
create
in interface JdbcPoolFactory
create
in class DefaultPoolFactory
java.lang.Exception
public TimeInterval getUnreturnedConnectionTimeout()
public void setUnreturnedConnectionTimeout(TimeInterval interval)
interval
- the unreturnedConnectionTimeout to set, default if not specified is 1 day.public DebugPoolFactory withUnreturnedConnectionTimeout(TimeInterval interval)
public java.lang.Boolean getDebugUnreturnedConnectionStackTraces()
public void setDebugUnreturnedConnectionStackTraces(java.lang.Boolean onOff)
onOff
- the debugUnreturnedConnectionStackTraces to set, default false if not specified.public DebugPoolFactory withDebugUnreturnedConnectionStackTraces(java.lang.Boolean b)