| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INTERVAL |
| Constructor and Description |
|---|
PoolUpdater(HighAvailableDataSource highAvailableDataSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
HighAvailableDataSource |
getHighAvailableDataSource() |
int |
getIntervalSeconds() |
Set<String> |
getNodesToDel() |
void |
init()
Create a ScheduledExecutorService to remove unused DataSources.
|
boolean |
isAllowEmptyPool() |
void |
removeDataSources()
Remove unused DataSources.
|
void |
setAllowEmptyPool(boolean allowEmptyPool) |
void |
setHighAvailableDataSource(HighAvailableDataSource highAvailableDataSource) |
void |
setIntervalSeconds(int intervalSeconds) |
void |
update(Observable o,
Object arg)
Process the given NodeEvent[].
|
public static final int DEFAULT_INTERVAL
public PoolUpdater(HighAvailableDataSource highAvailableDataSource)
public void init()
public void destroy()
public void update(Observable o, Object arg)
public void removeDataSources()
public HighAvailableDataSource getHighAvailableDataSource()
public void setHighAvailableDataSource(HighAvailableDataSource highAvailableDataSource)
public int getIntervalSeconds()
public void setIntervalSeconds(int intervalSeconds)
public boolean isAllowEmptyPool()
public void setAllowEmptyPool(boolean allowEmptyPool)
Copyright © 2013–2022 Alibaba Group. All rights reserved.