use of com.alibaba.nacos.api.selector.ExpressionSelector in project nacos by alibaba.
the class NacosNamingMaintainService method createService.
@Override
public void createService(String serviceName, String groupName, float protectThreshold, String expression) throws NacosException {
Service service = new Service();
service.setName(serviceName);
service.setGroupName(groupName);
service.setProtectThreshold(protectThreshold);
ExpressionSelector selector = new ExpressionSelector();
selector.setExpression(expression);
createService(service, selector);
}
Aggregations