![JAR search and dependency download from the Maven repository](/logo.png)
com.github.houbb.rpc.client.model.ClientQueryServerChannelConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rpc-client Show documentation
Show all versions of rpc-client Show documentation
The client module of rpc framework.
The newest version!
package com.github.houbb.rpc.client.model;
import com.github.houbb.rpc.common.config.component.RpcAddress;
import java.util.List;
/**
* 客户端查询服务端连接信息配置
* @since 0.1.8
*/
public class ClientQueryServerChannelConfig {
/**
* 服务唯一标识
*/
private String serviceId;
/**
* 服务地址信息
* (1)如果不为空,则直接根据地址获取
* (2)如果为空,则采用自动发现的方式
*
* 如果为 subscribe 可以自动发现,然后填充这个字段信息。
*
* @since 0.0.6
*/
private List rpcAddresses;
/**
* 是否进行订阅模式
*
* @since 0.0.8
*/
private boolean subscribe;
/**
* 注册中心列表
*
* @since 0.0.8
*/
private List registerCenterList;
/**
* 客户端启动检测
* @since 0.1.5
*/
private boolean check;
public String serviceId() {
return serviceId;
}
public ClientQueryServerChannelConfig serviceId(String serviceId) {
this.serviceId = serviceId;
return this;
}
public List rpcAddresses() {
return rpcAddresses;
}
public ClientQueryServerChannelConfig rpcAddresses(List rpcAddresses) {
this.rpcAddresses = rpcAddresses;
return this;
}
public boolean subscribe() {
return subscribe;
}
public ClientQueryServerChannelConfig subscribe(boolean subscribe) {
this.subscribe = subscribe;
return this;
}
public List registerCenterList() {
return registerCenterList;
}
public ClientQueryServerChannelConfig registerCenterList(List registerCenterList) {
this.registerCenterList = registerCenterList;
return this;
}
public boolean check() {
return check;
}
public ClientQueryServerChannelConfig check(boolean check) {
this.check = check;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy