class CloudLoadBalanceFactory implements LoadBalance.Factory {

    private final Map<String, CloudLoadBalance> cached = new ConcurrentHashMap<>();

    /**
     * 获取负载均衡
     */
    public CloudLoadBalance get(String service) {
        return get("", service);
    }

    /**
     * 获取负载均衡
     */
    public CloudLoadBalance get(String group, String service) {
        if (group == null) {
            group = "";
        }

        String cacheKey = group + ":" + service;

        return cached.get(cacheKey);
    }

    /**
     * 负载均衡数量
     *
     * @since 1.6
     */
    public int count() {
        return cached.size();
    }

    /**
     * 负载均衡遍历
     */
    public void forEach(BiConsumer<String, CloudLoadBalance> action) {
        cached.forEach(action);
    }

    /**
     * 创建负载均衡
     */
    public LoadBalance create(String service) {
        return create("", service);
    }

    /**
     * 创建负载均衡
     */
    @Override
    public LoadBalance create(String group, String service) {<FILL_FUNCTION_BODY>}

    /**
     * 注册负载均衡
     */
    public void register(String group, String service, Discovery discovery) {
        if (group == null) {
            group = "";
        }

        String cacheKey = group + ":" + service;
        String group2 = group;

        cached.computeIfAbsent(cacheKey, k -> {
            return new CloudLoadBalance(group2, service, discovery);
        });
    }
}

        if (group == null) {
            group = "";
        }

        String cacheKey = group + ":" + service;
        String group2 = group;

        return cached.computeIfAbsent(cacheKey, k -> {
            return new CloudLoadBalance(group2, service);
        });
    
<no_super_class>