fromValue

fun fromValue(value: Int): QoS

Returns the QoS corresponding to the given numeric value.

Parameters

value

The QoS level (0, 1, or 2).

Throws

if value is not a valid QoS level.