How to improve the performance while using ExecutorService with thread timeout capabilities?
- 阅读更多 关于 How to improve the performance while using ExecutorService with thread timeout capabilities?
问题 I am not a Multithreading Expert but I am seeing some performance issues with my current code which is using ExecutorService . I am working on a project in which I need to make a HTTP URL call to my server and if it is taking too long time to respond then timeout the call. Currently it is returning simple JSON String back.. Current requirement I have is for 10 ms . Within 10 ms it should be able to get the data back from the server. I guess its possible since it is just an HTTP call to server