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)
ServerListUpdater
start
in interface ServerListUpdater
public void stop()
ServerListUpdater
stop
in interface ServerListUpdater
public java.lang.String getLastUpdate()
getLastUpdate
in interface ServerListUpdater
Date
stringpublic long getDurationSinceLastUpdateMs()
getDurationSinceLastUpdateMs
in interface ServerListUpdater
public int getNumberMissedCycles()
getNumberMissedCycles
in interface ServerListUpdater
public int getCoreThreads()
getCoreThreads
in interface ServerListUpdater