All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.dankito.utils.network.PeriodicCheckingNetworkConnectivityManager.kt Maven / Gradle / Ivy

The newest version!
package net.dankito.utils.network

import java.util.*
import kotlin.concurrent.schedule


open class PeriodicCheckingNetworkConnectivityManager(networkHelper: INetworkHelper)
    : NetworkConnectivityManagerBase(networkHelper) {

    companion object {
        private const val CheckForNetworkInterfaceChangesPeriodMillis = 60 * 1000L
    }


    init {
        Timer().schedule(CheckForNetworkInterfaceChangesPeriodMillis, CheckForNetworkInterfaceChangesPeriodMillis) { networkInterfacesChanged() }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy