public class RequestTracker extends Object
Constructor and Description |
---|
RequestTracker() |
Modifier and Type | Method and Description |
---|---|
void |
clearRequests()
Cancels all requests and clears their resources.
|
boolean |
isPaused()
Returns
true if requests are currently paused, and false otherwise. |
void |
pauseRequests()
Stops any in progress requests.
|
void |
removeRequest(Request request)
Stops tracking the given request.
|
void |
restartRequests()
Restarts failed requests and cancels and restarts in progress requests.
|
void |
resumeRequests()
Starts any not yet completed or failed requests.
|
void |
runRequest(Request request)
Starts tracking the given request.
|
public void runRequest(Request request)
public void removeRequest(Request request)
public boolean isPaused()
true
if requests are currently paused, and false
otherwise.public void pauseRequests()
public void resumeRequests()
public void clearRequests()
public void restartRequests()