下面列出了怎么用com.alibaba.dubbo.rpc.benchmark.ServiceFactory的API类实例代码及写法,或者点击链接到github查看源代码。
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public Object invoke(ServiceFactory serviceFactory) {
DemoService demoService = (DemoService) serviceFactory.get(DemoService.class);
return demoService.sendRequest("hello");
}
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public Object invoke(ServiceFactory serviceFactory) {
DemoService demoService = (DemoService) serviceFactory.get(DemoService.class);
return demoService.sendRequest("hello");
}
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public Object invoke(ServiceFactory serviceFactory) {
DemoService demoService = (DemoService) serviceFactory.get(DemoService.class);
return demoService.sendRequest("hello");
}
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public Object invoke(ServiceFactory serviceFactory) {
DemoService demoService = (DemoService) serviceFactory.get(DemoService.class);
return demoService.sendRequest("hello");
}