java.lang.Object | |
↳ | com.android.volley.ExecutorDelivery |
Delivers responses and errors.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ExecutorDelivery(Handler handler)
Creates a new response delivery interface.
| |||||||||||
ExecutorDelivery(Executor executor)
Creates a new response delivery interface, mockable version
for testing.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
postError(Request<?> request, VolleyError error)
Posts an error for the given request.
| ||||||||||
void |
postResponse(Request<?> request, Response<?> response, Runnable runnable)
Parses a response from the network or cache and delivers it.
| ||||||||||
void |
postResponse(Request<?> request, Response<?> response)
Parses a response from the network or cache and delivers it.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.android.volley.ResponseDelivery
|
Creates a new response delivery interface.
handler | Handler to post responses on |
---|
Creates a new response delivery interface, mockable version for testing.
executor | For running delivery tasks |
---|
Parses a response from the network or cache and delivers it. The provided Runnable will be executed after delivery.
Parses a response from the network or cache and delivers it.