public class StickyRandomDataSourceSelector extends RandomDataSourceSelector
RandomDataSourceSelector,
StickyDataSourceHolderPROP_BLACKLIST_THRESHOLD, PROP_CHECKING_INTERVAL, PROP_RECOVERY_INTERVAL, PROP_VALIDATION_SLEEP| 构造器和说明 |
|---|
StickyRandomDataSourceSelector(HighAvailableDataSource highAvailableDataSource) |
| 限定符和类型 | 方法和说明 |
|---|---|
DataSource |
get()
Return a DataSource according to the implemention.
|
int |
getExpireSeconds() |
String |
getName()
Return the name of this DataSourceSelector.
|
void |
setExpireSeconds(int expireSeconds) |
addBlacklist, containInBlacklist, destroy, getBlacklist, getBlacklistThreshold, getCheckingIntervalSeconds, getDataSourceMap, getFullDataSourceMap, getHighAvailableDataSource, getRecoverThread, getRecoveryIntervalSeconds, getValidateThread, getValidationSleepSeconds, init, removeBlacklist, setBlacklistThreshold, setCheckingIntervalSeconds, setRecoverThread, setRecoveryIntervalSeconds, setTarget, setValidateThread, setValidationSleepSecondspublic StickyRandomDataSourceSelector(HighAvailableDataSource highAvailableDataSource)
public String getName()
DataSourceSelectorgetName 在接口中 DataSourceSelectorgetName 在类中 RandomDataSourceSelectorpublic DataSource get()
DataSourceSelectorget 在接口中 DataSourceSelectorget 在类中 RandomDataSourceSelectorpublic int getExpireSeconds()
public void setExpireSeconds(int expireSeconds)
Copyright © 2013–2023. All rights reserved.