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

commonMain.com.algolia.search.configuration.RetryableHost.kt Maven / Gradle / Ivy

package com.algolia.search.configuration

import com.algolia.search.model.internal.Time

/**
 * @param url The url to target.
 * @param callType Whether this host should be used for [CallType.Read] or [CallType.Write] requests.
 */
public data class RetryableHost(
    val url: String,
    val callType: CallType? = null
) {

    internal var isUp: Boolean = true
    internal var lastUpdated: Long = Time.getCurrentTimeMillis()
    internal var retryCount: Int = 0
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy