aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/android/volley/Request.java
diff options
context:
space:
mode:
authorAnonymous <no-reply@google.com>2018-11-19 17:26:01 -0800
committerJeff Davidson <jpd@google.com>2018-11-19 17:27:43 -0800
commite636520a251b37c313731666bcff1f39ecf41b35 (patch)
tree0cd474d52b5aea1378f22c09f6ab4fc6fd94bb2c /src/main/java/com/android/volley/Request.java
parentd2e032ebc11eb39c4021a7c306119cb7dbaaf56d (diff)
downloadvolley-e636520a251b37c313731666bcff1f39ecf41b35.tar.gz
- 1ec8e6e1e4979a8c907765e41546a4d3c63035fe Allow tracking of the request's life cycle (#238) by Artem <artikz@users.noreply.github.com> GitOrigin-RevId: 1ec8e6e1e4979a8c907765e41546a4d3c63035fe Change-Id: Ib57d2210f4ab8116c204fc321007892bf3e02393
Diffstat (limited to 'src/main/java/com/android/volley/Request.java')
-rw-r--r--src/main/java/com/android/volley/Request.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/android/volley/Request.java b/src/main/java/com/android/volley/Request.java
index cd7290a..0b18abb 100644
--- a/src/main/java/com/android/volley/Request.java
+++ b/src/main/java/com/android/volley/Request.java
@@ -251,6 +251,12 @@ public abstract class Request<T> implements Comparable<Request<T>> {
}
}
+ void sendEvent(@RequestQueue.RequestEvent int event) {
+ if (mRequestQueue != null) {
+ mRequestQueue.sendRequestEvent(this, event);
+ }
+ }
+
/**
* Associates this request with the given queue. The request queue will be notified when this
* request has finished.