- will be removed in a future version of DBCP.
Configuration settings for handling abandoned db connections.
| Method from org.apache.commons.dbcp.AbandonedConfig Detail: |
public boolean getLogAbandoned() {
return (this.logAbandoned);
} Deprecated!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. |
public boolean getRemoveAbandoned() {
return (this.removeAbandoned);
} Deprecated!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. |
public int getRemoveAbandonedTimeout() {
return (this.removeAbandonedTimeout);
} Deprecated!Timeout in seconds before an abandoned connection can be removed.
Defaults to 300 seconds. |
public void setLogAbandoned(boolean logAbandoned) {
this.logAbandoned = logAbandoned;
} Deprecated!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. |
public void setRemoveAbandoned(boolean removeAbandoned) {
this.removeAbandoned = removeAbandoned;
} Deprecated!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. |
public void setRemoveAbandonedTimeout(int removeAbandonedTimeout) {
this.removeAbandonedTimeout = removeAbandonedTimeout;
} Deprecated!Timeout in seconds before an abandoned connection can be removed.
Defaults to 300 seconds. |