public void addRequest(WebRequest request) { // filled out by caller throttle.addRequest(request); }
public void addRequest(String url, int type, Callback callback) { WebRequest request = new WebRequest(url, type); request.addCallback(callback); throttle.addRequest(request); }