September 2017
Intermediate to advanced
670 pages
18h 9m
English
After using Reactor Core specification to build the service layer, let us apply Mono<T> and Flux<T> streams to @Controllers by doing these steps:
@RequestMapping(value="/web/employeeNames.json", produces ="application/json", method = RequestMethod.GET, headers = {"Accept=text/xml, application/json"}) @ResponseBody public Callable<List<String>> jsonEmpNames(){ Callable<List<String>> task = new Callable<List<String>>() { @Override public List<String> call () throws Exception { List<String> names = new ArrayList<>(); System.out.println("controller:jsonEmpNames task executor: " + Thread.currentThread().getName()); ...Read now
Unlock full access