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

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

There is a newer version: 1.0.20
Show 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