public synchronized void cancelAll() {
		if (activeRequests.size() > 0) {
			List<HttpRequest> temp = new ArrayList<>(activeRequests);
			for (HttpRequest request : temp) {
				request.cancel();
			}
		}
		notifyCancelledAllRequests();
	}
public synchronized void cancelAll ( ) { if ( activeRequests . size ( ) > 0 ) { List < HttpRequest > temp = new ArrayList < > ( activeRequests ) ; for ( HttpRequest request : temp ) { request . cancel ( ) ; } } notifyCancelledAllRequests ( ) ; }
Cancel all active requests