Hi I'm developing a java application wherein I need to call Restful api again and again after a specific time interval (say 10 seconds) and this would continue for a few days. (I'm using Apache HttpClient
library to call the service.)
HttpClient client = new DefaultHttpClient();
HttpGet getRequest = new HttpGet(rest-URL);
HttpResponse response = client.execute(getRequest);
Which is the most efficient way to achieve this?