create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| GetMapping("/async-deferredresult") | |
| public DeferredResult<ResponseEntity<?>> handleReqDefResult(Model model) { | |
| LOG.info("Received async-deferredresult request"); | |
| DeferredResult<ResponseEntity<?>> output = new DeferredResult<>(); //just a declaration | |
| ForkJoinPool.commonPool().submit(() -> { //we pass a service method to an ExecutorService / thread pool | |
| LOG.info("Processing in separate thread"); | |
| try { | |
| Thread.sleep(6000); | |
| } catch (InterruptedException e) { |
| //-------------------------------------------------------- | |
| //Service that we want to execute asynchroneously - consists of the following method: | |
| public String execute() { | |
| try { | |
| Thread.sleep(5000); | |
| logger.info("Slow task executed"); | |
| return "Task finished"; | |
| } catch (InterruptedException e) { | |
| throw new RuntimeException(); | |
| } |