public class RequestTickle
extends java.lang.Object
add(Request) will add the request to request tickle and start(),
will give a NetworkResponse. The listeners in the request will also be notified.| Constructor and Description |
|---|
RequestTickle(Cache cache,
Network network)
Creates the worker pool.
|
RequestTickle(Cache cache,
Network network,
ResponseDelivery delivery)
Creates the worker pool.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Request<T> |
add(Request<T> request)
Adds a Request to the dispatch queue.
|
void |
cancel()
Cancel the request.
|
Cache |
getCache()
Gets the
Cache instance being used. |
VolleyError |
getError() |
Response<?> |
getResponse() |
NetworkResponse |
start()
Starts the request and return
NetworkResponse or null. |
public RequestTickle(Cache cache, Network network, ResponseDelivery delivery)
start() is called.cache - A Cache to use for persisting responses to disknetwork - A Network interface for performing HTTP requestsdelivery - A ResponseDelivery interface for posting responses and errorspublic <T> Request<T> add(Request<T> request)
request - The request to servicepublic void cancel()
public NetworkResponse start()
NetworkResponse or null.public Response<?> getResponse()
public VolleyError getError()