public class BasicAsyncNetwork extends AsyncNetwork
HttpStack.
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 |
BasicAsyncNetwork.Builder
Builder is used to build an instance of
BasicAsyncNetwork from values configured by
the setters. |
AsyncNetwork.OnRequestComplete| Modifier and Type | Method and Description |
|---|---|
void |
performRequest(Request<?> request,
AsyncNetwork.OnRequestComplete callback)
Non-blocking method to perform the specified request.
|
void |
setBlockingExecutor(java.util.concurrent.ExecutorService executor)
This method sets the blocking executor to be used by the network for potentially blocking
tasks.
|
void |
setNonBlockingExecutor(java.util.concurrent.ExecutorService executor)
This method sets the non blocking executor to be used by the network for non-blocking tasks.
|
getBlockingExecutor, getNonBlockingExecutor, getNonBlockingScheduledExecutor, performRequest, setNonBlockingScheduledExecutorpublic void setBlockingExecutor(java.util.concurrent.ExecutorService executor)
AsyncNetworkThis method must be called before performing any requests.
setBlockingExecutor in class AsyncNetworkpublic void setNonBlockingExecutor(java.util.concurrent.ExecutorService executor)
AsyncNetworkThis method must be called before performing any requests.
setNonBlockingExecutor in class AsyncNetworkpublic void performRequest(Request<?> request, AsyncNetwork.OnRequestComplete callback)
AsyncNetworkperformRequest in class AsyncNetworkrequest - Request to processcallback - to be called once NetworkResponse is received