I am new to Java programming and am stuck in a problem. I am using the Spring TaskExecutor Interface to manage thread pools. I have to extract content from different sources (Http, Files, Databse) in parallel, so I used TaskExecutor for this. Now I want that after all the threads have been executed with execution, it should specify the TaskExecutor , also if they did not complete the execution in 4 seconds, so that the tasks are terminated. So I am stuck in this problem. I tried to use the called interface with the future, but it makes the task execute synchronously, but I need async. Please help me.
source share