public final class PollingModes
extends java.lang.Object
| Constructor and Description |
|---|
PollingModes() |
| Modifier and Type | Method and Description |
|---|---|
static PollingMode |
autoPoll()
Set up the auto polling mode with default parameters.
|
static PollingMode |
autoPoll(int autoPollIntervalInSeconds)
Set up the auto polling mode with custom parameters.
|
static PollingMode |
autoPoll(int autoPollIntervalInSeconds,
int maxInitWaitTimeSeconds)
Set up the auto polling mode with custom parameters.
|
static PollingMode |
lazyLoad()
Set up a lazy polling mode with default parameters.
|
static PollingMode |
lazyLoad(int cacheRefreshIntervalInSeconds)
Set up a lazy polling mode with custom parameters.
|
static PollingMode |
manualPoll()
Set up the manual polling mode.
|
public static PollingMode autoPoll()
public static PollingMode autoPoll(int autoPollIntervalInSeconds)
autoPollIntervalInSeconds - Sets how often the config.json should be fetched and cached.public static PollingMode autoPoll(int autoPollIntervalInSeconds, int maxInitWaitTimeSeconds)
autoPollIntervalInSeconds - Sets how often the config.json should be fetched and cached.maxInitWaitTimeSeconds - Sets the time limit between the initialization of the client and the first config.json acquisition.public static PollingMode lazyLoad()
public static PollingMode lazyLoad(int cacheRefreshIntervalInSeconds)
cacheRefreshIntervalInSeconds - Sets how long the cache will store its value before fetching the latest from the network again.public static PollingMode manualPoll()