use of com.weibo.api.motan.config.springsupport.ProtocolConfigBean in project motan by weibocom.
the class AnnotationRpcClientDemo method demoMotanProtocolConfig.
@Bean(name = "demoMotan")
public ProtocolConfigBean demoMotanProtocolConfig() {
ProtocolConfigBean config = new ProtocolConfigBean();
//Id无需设置
// config.setId("demoMotan");
config.setName("motan");
config.setDefault(true);
config.setMaxContentLength(1048576);
config.setHaStrategy("failover");
config.setLoadbalance("roundrobin");
return config;
}
use of com.weibo.api.motan.config.springsupport.ProtocolConfigBean in project motan by weibocom.
the class AnnotationRpcClientDemo method protocolConfig2.
@Bean(name = "demoMotan2")
public ProtocolConfigBean protocolConfig2() {
ProtocolConfigBean config = new ProtocolConfigBean();
config.setName("motan");
config.setMaxContentLength(1048576);
config.setHaStrategy("failover");
config.setLoadbalance("roundrobin");
return config;
}
use of com.weibo.api.motan.config.springsupport.ProtocolConfigBean in project motan by weibocom.
the class AnnotationRpcServerDemo method protocolConfig1.
@Bean(name = "demoMotan")
public ProtocolConfigBean protocolConfig1() {
ProtocolConfigBean config = new ProtocolConfigBean();
config.setDefault(true);
config.setName("motan");
config.setMaxContentLength(1048576);
return config;
}
use of com.weibo.api.motan.config.springsupport.ProtocolConfigBean in project motan by weibocom.
the class AnnotationRpcServerDemo method protocolConfig2.
@Bean(name = "motan")
public ProtocolConfigBean protocolConfig2() {
ProtocolConfigBean config = new ProtocolConfigBean();
// config.setId("demoMotan2");
config.setName("motan");
config.setMaxContentLength(1048576);
return config;
}
use of com.weibo.api.motan.config.springsupport.ProtocolConfigBean in project motan by weibocom.
the class SpringBootRpcServerDemo method protocolConfig1.
@Bean(name = "demoMotan")
public ProtocolConfigBean protocolConfig1() {
ProtocolConfigBean config = new ProtocolConfigBean();
config.setDefault(true);
config.setName("motan");
config.setMaxContentLength(1048576);
return config;
}
Aggregations