Search in sources :

Example 1 with BasicRefererConfigBean

use of com.weibo.api.motan.config.springsupport.BasicRefererConfigBean in project motan by weibocom.

the class AnnotationRpcClientDemo method baseRefererConfig.

@Bean(name = "motantestClientBasicConfig")
public BasicRefererConfigBean baseRefererConfig() {
    BasicRefererConfigBean config = new BasicRefererConfigBean();
    config.setProtocol("demoMotan");
    config.setGroup("motan-demo-rpc");
    config.setModule("motan-demo-rpc");
    config.setApplication("myMotanDemo");
    config.setRegistry("registry");
    config.setCheck(false);
    config.setAccessLog(true);
    config.setRetries(2);
    config.setThrowException(true);
    return config;
}
Also used : BasicRefererConfigBean(com.weibo.api.motan.config.springsupport.BasicRefererConfigBean) ProtocolConfigBean(com.weibo.api.motan.config.springsupport.ProtocolConfigBean) BasicRefererConfigBean(com.weibo.api.motan.config.springsupport.BasicRefererConfigBean) AnnotationBean(com.weibo.api.motan.config.springsupport.AnnotationBean) Bean(org.springframework.context.annotation.Bean) RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean)

Example 2 with BasicRefererConfigBean

use of com.weibo.api.motan.config.springsupport.BasicRefererConfigBean in project motan by weibocom.

the class SpringBootRpcClientDemo method baseRefererConfig.

@Bean(name = "motantestClientBasicConfig")
public BasicRefererConfigBean baseRefererConfig() {
    BasicRefererConfigBean config = new BasicRefererConfigBean();
    config.setProtocol("demoMotan");
    config.setGroup("motan-demo-rpc");
    config.setModule("motan-demo-rpc");
    config.setApplication("myMotanDemo");
    config.setRegistry("registry");
    config.setCheck(false);
    config.setAccessLog(true);
    config.setRetries(2);
    config.setThrowException(true);
    return config;
}
Also used : BasicRefererConfigBean(com.weibo.api.motan.config.springsupport.BasicRefererConfigBean) ProtocolConfigBean(com.weibo.api.motan.config.springsupport.ProtocolConfigBean) BasicRefererConfigBean(com.weibo.api.motan.config.springsupport.BasicRefererConfigBean) AnnotationBean(com.weibo.api.motan.config.springsupport.AnnotationBean) Bean(org.springframework.context.annotation.Bean) RegistryConfigBean(com.weibo.api.motan.config.springsupport.RegistryConfigBean)

Aggregations

AnnotationBean (com.weibo.api.motan.config.springsupport.AnnotationBean)2 BasicRefererConfigBean (com.weibo.api.motan.config.springsupport.BasicRefererConfigBean)2 ProtocolConfigBean (com.weibo.api.motan.config.springsupport.ProtocolConfigBean)2 RegistryConfigBean (com.weibo.api.motan.config.springsupport.RegistryConfigBean)2 Bean (org.springframework.context.annotation.Bean)2