Project

General

Profile

« Previous | Next » 

Revision 50092

fast decrease of the latch in case of empty response

View differences:

DatasourcesApiController.java
84 84
	@Override
85 85
	@RequestMapping(value = "/ds/search/country/{page}/{size}", produces = { "application/json" }, method = RequestMethod.GET)
86 86
	public List<DatasourceResponse> searchByCountry(
87
			@RequestParam final String country, @PathVariable final int page, @PathVariable final int size) {
87
			@RequestParam final String country,
88
			@RequestParam(required = false) final Boolean managed,
89
			@PathVariable final int page,
90
			@PathVariable final int size) {
88 91
		final StopWatch stop = StopWatch.createStarted();
89
		final Response rsp = dsDao.searchByCountry(country, new PageRequest(page, size));
92
		final Response rsp = dsDao.searchByCountry(country, managed, new PageRequest(page, size));
90 93
		rsp.getHeader().setTime(stop.getTime());
91 94
		if (log.isDebugEnabled()) {
92 95
			log.debug("searchByCountry: " + rsp.getHeader().toJson());

Also available in: Unified diff