All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zodiac.sentinel.nacos.cluster.client.NacosClusterClientInitFunc Maven / Gradle / Ivy

The newest version!
package org.zodiac.sentinel.nacos.cluster.client;

import org.zodiac.sentinel.base.cluster.client.ClusterClientInitFunc;
import org.zodiac.sentinel.base.cluster.client.ClusterClientOption;

public class NacosClusterClientInitFunc extends ClusterClientInitFunc {

    private NacosClusterOption clusterOption = NacosClusterOption.getDefault();

    public NacosClusterClientInitFunc() {
    }

    public NacosClusterClientInitFunc(String namespacePrefix) {
        this(namespacePrefix, null);
    }

    public NacosClusterClientInitFunc(String namespacePrefix, NacosClusterOption clusterOption) {
        super(namespacePrefix);
        if (null != clusterOption)
            this.clusterOption = clusterOption;
    }

    @Override
    protected ClusterClientOption obtainClusterOption() {
        return clusterOption;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy