com.bumptech.glide.manager
Class RequestTracker

java.lang.Object
  extended by com.bumptech.glide.manager.RequestTracker

public class RequestTracker
extends Object

A class for tracking, canceling, and restarting in progress, completed, and failed requests.


Constructor Summary
RequestTracker()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestTracker

public RequestTracker()
Method Detail

runRequest

public void runRequest(Request request)
Starts tracking the given request.


removeRequest

public void removeRequest(Request request)
Stops tracking the given request.


isPaused

public boolean isPaused()
Returns true if requests are currently paused, and false otherwise.


pauseRequests

public void pauseRequests()
Stops any in progress requests.


resumeRequests

public void resumeRequests()
Starts any not yet completed or failed requests.


clearRequests

public void clearRequests()
Cancels all requests and clears their resources.


restartRequests

public void restartRequests()
Restarts failed requests and cancels and restarts in progress requests.