I forked the spring-boot2-demo repo to this
Did these changes :
BackendBController.java
@GetMapping("futureTimeout")
public String futureTimeout(){
for(int i=0; i< 1000; i++){
executeAsyncWithFallback(this::timeout, this::fallback);
}
return "Something";
}
I invoked the /futureTimeout
endpoint in BackedBController
I see this in JVisualVM
I am trying to understand if this the expected behavior i.e. Once the job is complete will threads remain active? Shouldn't they be closed?