getNextServerCandidate

open fun getNextServerCandidate(supportedProtocolTypes: EnumSet<ProtocolTypes>): ServerRecord
open fun getNextServerCandidate(supportedProtocolTypes: ProtocolTypes): ServerRecord

Get the next server in the list.

Return

An ServerRecord, or null if the list is empty.

Parameters

supportedProtocolTypes

The minimum supported ProtocolTypes of the server to return.