RoundRobinEndpointSelector

Deterministic round-robin EndpointSelector starting at startIndex.

On each next call the index advances by one modulo size. This is the default selector used by ServerClusterReconnect when none is supplied.

Parameters

startIndex

the first index returned (default 0).

Constructors

Link copied to clipboard
constructor(startIndex: Int = 0)

Functions

Link copied to clipboard
open override fun next(size: Int): Int

Return the index of the next endpoint to use.