preferOperatorWeights

fun preferOperatorWeights(value: Map<String, Float>): <Error class: unknown class>

Set how strongly the router prefers each operator from preferOperators.

The key is the operator, the value is its weight. A weight must be greater than 0.0 and not greater than 1.0, where 1.0 is the strongest preference.

  • If an operator from preferOperators is not in this map, its weight is 1.0.

  • Only operators from preferOperators are preferred. Adding an operator only to this map does not make it preferred: its weight is not sent to the router.

Throws

if a weight is 0.0 or less, or greater than 1.0.