public class AsyncRequestQueue extends RequestQueue
Add requests to the queue with RequestQueue.add(Request). Once completed, responses will be
delivered on the main thread (unless a custom ResponseDelivery has been provided).
WARNING: This API is experimental and subject to breaking changes. Please see https://github.com/google/volley/wiki/Asynchronous-Volley for more details.
| Modifier and Type | Class and Description |
|---|---|
static class |
AsyncRequestQueue.Builder
Builder is used to build an instance of
AsyncRequestQueue from values configured by
the setters. |
static class |
AsyncRequestQueue.ExecutorFactory
Factory to create/provide the executors which Volley will use.
|
RequestQueue.RequestEvent, RequestQueue.RequestEventListener, RequestQueue.RequestFilter, RequestQueue.RequestFinishedListener<T>| Modifier and Type | Method and Description |
|---|---|
void |
start()
Sets the executors and initializes the cache.
|
void |
stop()
Shuts down and nullifies both executors
|
add, addRequestEventListener, addRequestFinishedListener, cancelAll, cancelAll, getCache, getResponseDelivery, getSequenceNumber, removeRequestEventListener, removeRequestFinishedListenerpublic void start()
start in class RequestQueuepublic void stop()
stop in class RequestQueue