Package 

Class PollingModes


  • 
    public final class PollingModes
    
                        

    Describes the polling modes.

    • Method Summary

      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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(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.