protected fun initCheckLists()  { val streams: List<IceMediaStream> = getStreamsWithPendingConnectivityEstablishment() val streamCount = streams.size val maxCheckListSize = Integer.getInteger(StackProperties.MAX_CHECK_LIST_SIZE, DEFAULT_MAX_CHECK_LIST_SIZE) val maxPerStreamSize = if (streamCount == 0) 0 else maxCheckListSize / streamCount for (stream in streams) { logger.info("Init checklist for stream " + stream.getName()) stream.setMaxCheckListSize(maxPerStreamSize) stream.initCheckList() } if (streamCount > 0) streams[0].getCheckList().computeInitialCheckListPairStates() }
Creates , initializes and orders the list of candidate pairs that would be used for the connectivity checks for all components in this stream .