I was wondering if there is a way to execute a function after 15 seconds of another function executed in java asynchronously. For eg I have 2 functions.
1. public void func1() {
}
2. public void func2() {
}
After func1 is executed, after 15 seconds i want func2 to be executed.
Justification - Func1 does an update to an external interface . External interface takes approx 15 seconds time to process the data and store it. After 15 seconds I want to fetch certain processed data(URL) from the interface and store it in database. I dont want the user to wait for the complete request to be completed. Please advise