public class StickyRandomDataSourceSelector extends RandomDataSourceSelector
RandomDataSourceSelector,
StickyDataSourceHolderPROP_BLACKLIST_THRESHOLD, PROP_CHECKING_INTERVAL, PROP_RECOVERY_INTERVAL, PROP_VALIDATION_SLEEP| Constructor and Description |
|---|
StickyRandomDataSourceSelector(HighAvailableDataSource highAvailableDataSource) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface DataSourceSelectorgetName in class RandomDataSourceSelectorpublic DataSource get()
DataSourceSelectorget in interface DataSourceSelectorget in class RandomDataSourceSelectorpublic int getExpireSeconds()
public void setExpireSeconds(int expireSeconds)
Copyright © 2013–2022 Alibaba Group. All rights reserved.