private void initRouteIdIndex()

in appactive-java-client/client-bridge/client-bridge-rpc-apache-dubbo/client-bridge-rpc-apache-dubbo2/src/main/java/io/appactive/rpc/apache/dubbo2/consumer/ConsumerRouter.java [128:143]


    private <T> void initRouteIdIndex(List<Invoker<T>> invokers) {
        if (this.routeIdIndex != null){
            return;
        }
        if (CollectionUtils.isEmpty(invokers)){
            return;
        }
        for (Invoker<T> invoker : invokers) {
            String metaMapValue = callBack.getMetaMapValue(invoker, RPCConstant.URL_ROUTE_INDEX_KEY);
            if (metaMapValue != null){
                this.routeIdIndex = Integer.parseInt(metaMapValue);
                return;
            }
        }
        this.routeIdIndex = -1;
    }