Save This Page
Home » commons-dbcp-1.2.2-src » org.apache.commons » dbcp » [javadoc | source]
org.apache.commons.dbcp
public class: AbandonedConfig [javadoc | source]
java.lang.Object
   org.apache.commons.dbcp.AbandonedConfig
Deprecated! This - will be removed in a future version of DBCP.

Configuration settings for handling abandoned db connections.
Method from org.apache.commons.dbcp.AbandonedConfig Summary:
getLogAbandoned,   getRemoveAbandoned,   getRemoveAbandonedTimeout,   setLogAbandoned,   setRemoveAbandoned,   setRemoveAbandonedTimeout
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.dbcp.AbandonedConfig Detail:
 public boolean getLogAbandoned() 
      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() 
      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() 
      Deprecated!
    Timeout in seconds before an abandoned connection can be removed. Defaults to 300 seconds.
 public  void setLogAbandoned(boolean 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) 
      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) 
      Deprecated!
    Timeout in seconds before an abandoned connection can be removed. Defaults to 300 seconds.