| AndBase开发框架 1.6

- 首页
- 相关页面
- 命名空间
- 类
- 文件

- 类列表
- 类索引
- 类继承关系
- 类成员

全部 类 命名空间 文件 函数 变量 枚举值 页
Public 成员函数 | Private 属性 | 所有成员列表
com.ab.network.toolbox.ExecutorDelivery类 参考
类 com.ab.network.toolbox.ExecutorDelivery 继承关系图:

## Public 成员函数
| ExecutorDelivery (final Handler handler)
| ExecutorDelivery (Executor executor)
void | postResponse (Request<?> request, Response<?> response)
void | postResponse (Request<?> request, Response<?> response, Runnable runnable)
void | postError (Request<?> request, VolleyError error)

## Private 属性
final Executor | mResponsePoster

## 详细描述

Delivers responses and errors.

## 构造及析构函数说明

com.ab.network.toolbox.ExecutorDelivery.ExecutorDelivery | ( | final Handler | handler | ) |
| inline

Creates a new response delivery interface.

参数

  handler | Handler to post responses on

com.ab.network.toolbox.ExecutorDelivery.ExecutorDelivery | ( | Executor | executor | ) |
| inline

Creates a new response delivery interface, mockable version for testing.

参数

  executor | For running delivery tasks

## 成员函数说明

void com.ab.network.toolbox.ExecutorDelivery.postError | ( | Request<?> | request,
|  | VolleyError | error
| ) |  |
| inline

Posts an error for the given request.

实现了 com.ab.network.toolbox.ResponseDelivery.

void com.ab.network.toolbox.ExecutorDelivery.postResponse | ( | Request<?> | request,
|  | Response<?> | response
| ) |  |
| inline

Parses a response from the network or cache and delivers it.

实现了 com.ab.network.toolbox.ResponseDelivery.

void com.ab.network.toolbox.ExecutorDelivery.postResponse | ( | Request<?> | request,
|  | Response<?> | response,
|  | Runnable | runnable
| ) |  |
| inline

Parses a response from the network or cache and delivers it. The provided Runnable will be executed after delivery.

实现了 com.ab.network.toolbox.ResponseDelivery.

## 类成员变量说明

final Executor com.ab.network.toolbox.ExecutorDelivery.mResponsePoster
| private

Used for posting responses, typically to the main thread.

该类的文档由以下文件生成:

- src/com/ab/network/toolbox/ExecutorDelivery.java