|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.dbcp.AbandonedConfig
public class AbandonedConfig
Configuration settings for handling abandoned db connections.
Constructor Summary | |
---|---|
AbandonedConfig()
|
Method Summary | |
---|---|
boolean |
getLogAbandoned()
Flag to log stack traces for application code which abandoned a Statement or Connection. |
java.io.PrintWriter |
getLogWriter()
Returns the log writer being used by this configuration to log information on abandoned objects. |
boolean |
getRemoveAbandoned()
Flag to remove abandoned connections if they exceed the removeAbandonedTimeout. |
int |
getRemoveAbandonedTimeout()
Timeout in seconds before an abandoned connection can be removed. |
void |
setLogAbandoned(boolean logAbandoned)
Flag to log stack traces for application code which abandoned a Statement or Connection. |
void |
setLogWriter(java.io.PrintWriter logWriter)
Sets the log writer to be used by this configuration to log information on abandoned objects. |
void |
setRemoveAbandoned(boolean removeAbandoned)
Flag to remove abandoned connections if they exceed the removeAbandonedTimeout. |
void |
setRemoveAbandonedTimeout(int removeAbandonedTimeout)
Timeout in seconds before an abandoned connection can be removed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbandonedConfig()
Method Detail |
---|
public boolean getLogAbandoned()
public java.io.PrintWriter getLogWriter()
public boolean getRemoveAbandoned()
public int getRemoveAbandonedTimeout()
public void setLogAbandoned(boolean logAbandoned)
logAbandoned
- true turns on abandoned stack trace loggingpublic void setLogWriter(java.io.PrintWriter logWriter)
logWriter
- The new log writerpublic void setRemoveAbandoned(boolean removeAbandoned)
removeAbandoned
- true means abandoned connections will be
removedpublic void setRemoveAbandonedTimeout(int removeAbandonedTimeout)
removeAbandonedTimeout
- abandoned timeout in seconds
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |