datasource

Raod 3 years ago
parent fd0375975a
commit 072af7faae

@ -1,39 +0,0 @@
package com.anjiplus.template.gaea.business.modules.dataSource.pool.api;
/**
*
* @author binbin.hou
* @since 1.0.0
*/
public interface IConfig {
/**
*
*
* @param driverClass
* @since 1.0.0
*/
void setDriverClass(final String driverClass);
/**
* jdbc url
* @param jdbcUrl url
* @since 1.0.0
*/
void setJdbcUrl(final String jdbcUrl);
/**
*
* @param user
* @since 1.0.0
*/
void setUser(final String user);
/**
*
* @param password
* @since 1.0.0
*/
void setPassword(final String password);
}

@ -1,13 +0,0 @@
package com.anjiplus.template.gaea.business.modules.dataSource.pool.api;
import javax.sql.DataSource;
/**
*
* @author binbin.hou
* @since 1.0.0
*/
public interface IDataSourceConfig extends IConfig, DataSource {
}

@ -1,21 +0,0 @@
package com.anjiplus.template.gaea.business.modules.dataSource.pool.api;
/**
*
* @since 1.1.0
*/
public interface ILifeCycle {
/**
*
* @since 1.1.0
*/
void init();
/**
*
* @since 1.1.0
*/
void destroy();
}

@ -1,93 +0,0 @@
package com.anjiplus.template.gaea.business.modules.dataSource.pool.api;
import com.anjiplus.template.gaea.business.modules.dataSource.pool.connection.IPooledConnection;
/**
*
* @author binbin.hou
* @since 1.0.0
*/
public interface IPooledDataSourceConfig extends IDataSourceConfig {
/**
*
* @param pooledConnection
* @since 1.5.0
*/
void returnConnection(IPooledConnection pooledConnection);
/**
*
*
* @param minSize
* @since 1.1.0
*/
void setMinSize(final int minSize);
/**
*
*
* @param maxSize
* @since 1.1.0
*/
void setMaxSize(final int maxSize);
/**
*
* @param maxWaitMills
* @since 1.1.0
*/
void setMaxWaitMills(final long maxWaitMills);
/**
*
*
* {@link #setTestOnBorrow(boolean)}
* {@link #setTestOnIdle(boolean)}}
* {@link #setTestOnReturn(boolean)}
*
* @param validQuery
* @since 1.5.0
*/
void setValidQuery(final String validQuery);
/**
*
* @param validTimeOutSeconds
* @since 1.5.0
*/
void setValidTimeOutSeconds(final int validTimeOutSeconds);
/**
*
*
*
* @param testOnBorrow
* @since 1.5.0
*/
void setTestOnBorrow(final boolean testOnBorrow);
/**
*
*
*
* @param testOnReturn
* @since 1.5.0
*/
void setTestOnReturn(final boolean testOnReturn);
/**
*
* @param testOnIdle
* @since 1.5.0
*/
void setTestOnIdle(final boolean testOnIdle);
/**
*
* @param testOnIdleIntervalSeconds
* @since 1.5.0
*/
void setTestOnIdleIntervalSeconds(final long testOnIdleIntervalSeconds);
}
Loading…
Cancel
Save