public class DefaultDataSourceFailureDetecter extends Object implements DataSourceFailureDetecter
构造器和说明 |
---|
DefaultDataSourceFailureDetecter() |
限定符和类型 | 方法和说明 |
---|---|
long |
getMaxWaitMillis() |
String |
getValidateSql() |
boolean |
isValid(DruidDataSource dataSource) |
boolean |
isValidConnection(DruidDataSource dataSource,
Connection conn) |
void |
setMaxWaitMillis(long maxWaitMillis) |
void |
setValidateSql(String validateSql) |
public long getMaxWaitMillis()
public void setMaxWaitMillis(long maxWaitMillis)
public String getValidateSql()
public void setValidateSql(String validateSql)
public boolean isValid(DruidDataSource dataSource)
isValid
在接口中 DataSourceFailureDetecter
public boolean isValidConnection(DruidDataSource dataSource, Connection conn)
Copyright © 2012 Alibaba Group. All Rights Reserved.