getRunnableInterval

private fun getRunnableInterval(): Long

Returns the interval in which heartbeatRunnable/discoverRunnable should be called.

Return

1000 if isForeground is true, 10000 otherwise