Update ResponseBodyEmitterController.java

This commit is contained in:
Grzegorz Piwowarek
2018-07-31 07:44:14 +02:00
committed by GitHub
parent a1213549f3
commit e7091ab382
@@ -13,7 +13,7 @@ import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter
@Controller
public class ResponseBodyEmitterController {
private ExecutorService nonBlockingService = Executors.newSingleThreadExecutor();
private ExecutorService nonBlockingService = Executors.newCachedThreadPool();
@GetMapping(Constants.API_RBE)
public ResponseEntity<ResponseBodyEmitter> handleRbe() {