Single Thread Optimisation
Needless to that am new here and Java
As part of testing using TestNG for async methods, am looking for a more optimized method for handling latency. So, we are trying to split a given test method into parts where intermediate waits might be required. Is there is a way that a master method can add all these test parts into a queue, retrieve the desired piece at will and execute and push the intermediate objects back to the queue so that the same might be retrieved back on execution of next piece of code?
If there are available annotations which I can use over my methods to handle that, that would be great (since am looking to create annotations to handle the same). else, a better approach is always welcome
Re: Single Thread Optimisation
Have you looked at the classes in the java.util.concurrent package?