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

pl.allegro.tech.servicemesh.envoycontrol.consul.ConsulProperties.kt Maven / Gradle / Ivy

@file:Suppress("MagicNumber")

package pl.allegro.tech.servicemesh.envoycontrol.consul

import java.time.Duration

class ConsulProperties {
    var host: String = "localhost"
    var port = 8500
    var subscriptionDelay: Duration = Duration.ofMillis(20) // max 50 subscription/s
    var watcher = ConsulWatcherOkHttpProperties()
    var tags = TagsProperties()
    var blacklist = BlacklistProperties()
}

class ConsulWatcherOkHttpProperties {
    var readTimeout: Duration = Duration.ofMinutes(6)
    var connectTimeout: Duration = Duration.ofSeconds(2)
    var dispatcherMaxPoolSize = 2000
    var dispatcherPoolKeepAliveTime: Duration = Duration.ofSeconds(30)
}

class TagsProperties {
    var weight = "weight"
    var defaultWeight = 50
    var canary = "canary"
}

class BlacklistProperties {
    var serviceTags: List = listOf()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy