ClusterEndpoints
data class ClusterEndpoints(val endpoints: List<Tag>, val selector: EndpointSelector = RoundRobinEndpointSelector(startIndex = 0))
Configuration for a ClusterClient's endpoint rotation on transport tear.
Passed to CoroutineScope.clusterClient (S3b) and available for tests that exercise the reconnect policy in isolation.
Parameters
endpoints
Ordered list of server endpoint Tags. Must be non-empty.
selector
Strategy for picking the next endpoint after a tear. Defaults to deterministic round-robin starting at index 0.
Constructors
Link copied to clipboard
constructor(endpoints: List<Tag>, selector: EndpointSelector = RoundRobinEndpointSelector(startIndex = 0))
Properties
Functions
Link copied to clipboard
Builds the ServerClusterReconnect helper for these endpoints.