| |
|
| java.lang.Object org.apache.commons.dbcp.AbandonedConfig
AbandonedConfig | public class AbandonedConfig (Code) | | Configuration settings for handling abandoned db connections.
author: Glenn L. Nielsen version: $Revision: 482015 $ $Date: 2006-12-03 19:22:09 -0700 (Sun, 03 Dec 2006) $ |
Method Summary | |
public boolean | getLogAbandoned() Flag to log stack traces for application code which abandoned
a Statement or Connection. | public boolean | getRemoveAbandoned() Flag to remove abandoned connections if they exceed the
removeAbandonedTimeout. | public int | getRemoveAbandonedTimeout() Timeout in seconds before an abandoned connection can be removed. | public void | setLogAbandoned(boolean logAbandoned) Flag to log stack traces for application code which abandoned
a Statement or Connection. | public void | setRemoveAbandoned(boolean removeAbandoned) Flag to remove abandoned connections if they exceed the
removeAbandonedTimeout. | public void | setRemoveAbandonedTimeout(int removeAbandonedTimeout) Timeout in seconds before an abandoned connection can be removed. |
getLogAbandoned | public boolean getLogAbandoned()(Code) | | Flag to log stack traces for application code which abandoned
a Statement or Connection.
Defaults to false.
Logging of abandoned Statements and Connections adds overhead
for every Connection open or new Statement because a stack
trace has to be generated.
boolean true if stack trace logging is turned on for abandonedStatements or Connections |
getRemoveAbandoned | public boolean getRemoveAbandoned()(Code) | | Flag to remove abandoned connections if they exceed the
removeAbandonedTimeout.
Set to true or false, default false.
If set to true a connection is considered abandoned and eligible
for removal if it has been idle longer than the removeAbandonedTimeout.
Setting this to true can recover db connections from poorly written
applications which fail to close a connection.
true if abandoned connections are to be removed |
getRemoveAbandonedTimeout | public int getRemoveAbandonedTimeout()(Code) | | Timeout in seconds before an abandoned connection can be removed.
Defaults to 300 seconds.
abandoned timeout in seconds |
setLogAbandoned | public void setLogAbandoned(boolean logAbandoned)(Code) | | Flag to log stack traces for application code which abandoned
a Statement or Connection.
Defaults to false.
Logging of abandoned Statements and Connections adds overhead
for every Connection open or new Statement because a stack
trace has to be generated.
Parameters: logAbandoned - true turns on abandoned stack trace logging |
setRemoveAbandoned | public void setRemoveAbandoned(boolean removeAbandoned)(Code) | | Flag to remove abandoned connections if they exceed the
removeAbandonedTimeout.
Set to true or false, default false.
If set to true a connection is considered abandoned and eligible
for removal if it has been idle longer than the removeAbandonedTimeout.
Setting this to true can recover db connections from poorly written
applications which fail to close a connection.
Parameters: removeAbandoned - true means abandoned connections will beremoved |
setRemoveAbandonedTimeout | public void setRemoveAbandonedTimeout(int removeAbandonedTimeout)(Code) | | Timeout in seconds before an abandoned connection can be removed.
Defaults to 300 seconds.
Parameters: removeAbandonedTimeout - abandoned timeout in seconds |
|
|
|