Package com.bumptech.glide.manager
Class RequestTracker
- java.lang.Object
-
- com.bumptech.glide.manager.RequestTracker
-
public class RequestTracker extends java.lang.ObjectA class for tracking, canceling, and restarting in progress, completed, and failed requests.This class is not thread safe and must be accessed on the main thread.
-
-
Constructor Summary
Constructors Constructor Description RequestTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclearAndRemove(Request request)Stops tracking the given request, clears, and recycles it, and returnstrueif the request was removed or invalid orfalseif the request was not found.voidclearRequests()Cancels all requests and clears their resources.booleanisPaused()Returnstrueif requests are currently paused, andfalseotherwise.voidpauseAllRequests()Stops any in progress requests and releases bitmaps associated with completed requests.voidpauseRequests()Stops any in progress requests.voidrestartRequests()Restarts failed requests and cancels and restarts in progress requests.voidresumeRequests()Starts any not yet completed or failed requests.voidrunRequest(Request request)Starts tracking the given request.java.lang.StringtoString()
-
-
-
Method Detail
-
runRequest
public void runRequest(@NonNull Request request)Starts tracking the given request.
-
clearAndRemove
public boolean clearAndRemove(@Nullable Request request)Stops tracking the given request, clears, and recycles it, and returnstrueif the request was removed or invalid orfalseif the request was not found.
-
isPaused
public boolean isPaused()
Returnstrueif requests are currently paused, andfalseotherwise.
-
pauseRequests
public void pauseRequests()
Stops any in progress requests.
-
pauseAllRequests
public void pauseAllRequests()
Stops any in progress requests and releases bitmaps associated with completed requests.
-
resumeRequests
public void resumeRequests()
Starts any not yet completed or failed requests.
-
clearRequests
public void clearRequests()
Cancels all requests and clears their resources.After this call requests cannot be restarted.
-
restartRequests
public void restartRequests()
Restarts failed requests and cancels and restarts in progress requests.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-