public class PollingServerListUpdater extends java.lang.Object implements ServerListUpdater
DynamicServerListLoadBalancer)ServerListUpdater.UpdateAction| Constructor and Description |
|---|
PollingServerListUpdater() |
PollingServerListUpdater(com.netflix.client.config.IClientConfig clientConfig) |
PollingServerListUpdater(long initialDelayMs,
long refreshIntervalMs) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCoreThreads() |
long |
getDurationSinceLastUpdateMs() |
java.lang.String |
getLastUpdate() |
int |
getNumberMissedCycles() |
void |
start(ServerListUpdater.UpdateAction updateAction)
start the serverList updater with the given update action
This call should be idempotent.
|
void |
stop()
stop the serverList updater.
|
public PollingServerListUpdater()
public PollingServerListUpdater(com.netflix.client.config.IClientConfig clientConfig)
public PollingServerListUpdater(long initialDelayMs,
long refreshIntervalMs)
public void start(ServerListUpdater.UpdateAction updateAction)
ServerListUpdaterstart in interface ServerListUpdaterpublic void stop()
ServerListUpdaterstop in interface ServerListUpdaterpublic java.lang.String getLastUpdate()
getLastUpdate in interface ServerListUpdaterDate stringpublic long getDurationSinceLastUpdateMs()
getDurationSinceLastUpdateMs in interface ServerListUpdaterpublic int getNumberMissedCycles()
getNumberMissedCycles in interface ServerListUpdaterpublic int getCoreThreads()
getCoreThreads in interface ServerListUpdater