@IocBean(
name = "zbusHttpClientBootstrap",
depose = "close"
)
public ClientBootstrap createHttpClientBootstrap() {
ClientBootstrap bootstrap = new ClientBootstrap();
ServerAddress serverAddress = new ServerAddress();
if (this.conf.has("zbus.rpc.client.serviceToken")) {
bootstrap.serviceToken(this.conf.get("zbus.rpc.client.serviceToken"));
serverAddress.token = this.conf.get("zbus.rpc.client.serviceToken");
}
if (this.conf.has("zbus.rpc.client.clientPoolSize")) {
bootstrap.clientPoolSize(this.conf.getInt("zbus.rpc.client.clientPoolSize"));
}
this.conf.has("zbus.rpc.client.serviceName");
if (this.conf.has("zbus.rpc.client.serverAddress")) {
serverAddress.address = this.conf.get("zbus.rpc.client.serverAddress");
}
if (this.conf.has("zbus.rpc.client.sslEnabled")) {
serverAddress.sslEnabled = this.conf.getBoolean("zbus.rpc.client.sslEnabled");
}
if (this.conf.has("zbus.rpc.client.certificate")) {
serverAddress.certificate = this.conf.get("zbus.rpc.client.certificate");
}
return bootstrap;
}
问答
ZbusClientBean的createHttpClientBootstrap方法中的serverAddress为啥没有用到啊?
标签:
无
3 回复
添加回复
请先登陆