Typically, you cannot do anything to detect this or abort a running request. You are delayed by using processor time to complete the process because there is no way to interrupt the execution of a request from Java.
Why would this be a problem? What are you trying to avoid?
source share