-
public final class PollingModesDescribes the polling modes.
-
-
Method Summary
Modifier and Type Method Description static PollingModeautoPoll()Set up the auto polling mode with default parameters. static PollingModeautoPoll(int autoPollIntervalInSeconds)Set up the auto polling mode with custom parameters. static PollingModeautoPoll(int autoPollIntervalInSeconds, int maxInitWaitTimeSeconds)Set up the auto polling mode with custom parameters. static PollingModelazyLoad()Set up a lazy polling mode with default parameters. static PollingModelazyLoad(int cacheRefreshIntervalInSeconds)Set up a lazy polling mode with custom parameters. static PollingModemanualPoll()Set up the manual polling mode. -
-
Method Detail
-
autoPoll
static PollingMode autoPoll()
Set up the auto polling mode with default parameters.
-
autoPoll
static PollingMode autoPoll(int autoPollIntervalInSeconds)
Set up the auto polling mode with custom parameters.
- Parameters:
autoPollIntervalInSeconds- Sets how often the config.json should be fetched and cached.
-
autoPoll
static PollingMode autoPoll(int autoPollIntervalInSeconds, int maxInitWaitTimeSeconds)
Set up the auto polling mode with custom parameters.
- Parameters:
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.
-
lazyLoad
static PollingMode lazyLoad()
Set up a lazy polling mode with default parameters.
-
lazyLoad
static PollingMode lazyLoad(int cacheRefreshIntervalInSeconds)
Set up a lazy polling mode with custom parameters.
- Parameters:
cacheRefreshIntervalInSeconds- Sets how long the cache will store its value before fetching the latest from the network again.
-
manualPoll
static PollingMode manualPoll()
Set up the manual polling mode.
-
-
-
-