I am implementing Spring Retry, specifically for dead-lock scenarios, and there are several threads that get created further within my service (sending emails, etc).
The issue I am facing is the lack of control of whether or not these threads should retry again or not - since the retry attempt needs to be determined based on whether or not those threads triggered before the deadlock occurred.
How can I have some control over these thread creations?