类 StickyRandomDataSourceSelector
java.lang.Object
com.alibaba.druid.pool.ha.selector.RandomDataSourceSelector
com.alibaba.druid.pool.ha.selector.StickyRandomDataSourceSelector
- 所有已实现的接口:
DataSourceSelector
An extend selector based on RandomDataSourceSelector which can stick a DataSource to a Thread in a while.
- 作者:
- DigitalSonic
- 另请参阅:
-
字段概要
从类继承的字段 com.alibaba.druid.pool.ha.selector.RandomDataSourceSelector
PROP_BLACKLIST_THRESHOLD, PROP_CHECKING_INTERVAL, PROP_RECOVERY_INTERVAL, PROP_VALIDATION_SLEEP -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明get()Return a DataSource according to the implemention.intgetName()Return the name of this DataSourceSelector.voidsetExpireSeconds(int expireSeconds) 从类继承的方法 com.alibaba.druid.pool.ha.selector.RandomDataSourceSelector
addBlacklist, containInBlacklist, destroy, getBlacklist, getBlacklistThreshold, getCheckingIntervalSeconds, getDataSourceMap, getFullDataSourceMap, getHighAvailableDataSource, getRecoverThread, getRecoveryIntervalSeconds, getValidateThread, getValidationSleepSeconds, init, removeBlacklist, setBlacklistThreshold, setCheckingIntervalSeconds, setRecoverThread, setRecoveryIntervalSeconds, setTarget, setValidateThread, setValidationSleepSeconds
-
构造器详细资料
-
StickyRandomDataSourceSelector
-
-
方法详细资料
-
getName
从接口复制的说明:DataSourceSelectorReturn the name of this DataSourceSelector. e.g. byName- 指定者:
getName在接口中DataSourceSelector- 覆盖:
getName在类中RandomDataSourceSelector
-
get
从接口复制的说明:DataSourceSelectorReturn a DataSource according to the implemention.- 指定者:
get在接口中DataSourceSelector- 覆盖:
get在类中RandomDataSourceSelector
-
getExpireSeconds
public int getExpireSeconds() -
setExpireSeconds
public void setExpireSeconds(int expireSeconds)
-