get Runnable Interval
Returns the interval in which heartbeatRunnable/discoverRunnable should be called.
Return
1000 if isForeground is true, 10000 otherwise
Returns the interval in which heartbeatRunnable/discoverRunnable should be called.
1000 if isForeground is true, 10000 otherwise