目录

GetOption

Class Info

public final class GetOption

消息获取get过程的自定义参数选项。它包含消息获取策略(Policy)、消息过滤条件(MessagePicker)、get的关键事件回调(GetCallback)。

Nested Class Summary

Qualifier and Type

Class Name and Description

static class

GetOption.Builder

GetOption的构造类。

Public Field Summary

Qualifier and Type

Field and Description

static final GetOption

DEFAULT

GetOption的默认配置参数。

Public Method Summary

Qualifier and Type

Method Name and Description

GetCallback

getCallback()

获取已注册的Get过程中关键事件回调函数。

MessagePicker

getPicker()

获取已经定义的消息过滤条件。

Policy

getPolicy()

获取当前消息Get策略。

String

toString()

把对象转化成可读的字符串。

Public Fields

[h2]DEFAULT

Fields

public static final GetOption DEFAULT

GetOption的默认配置参数。

Constant Value:"DEFAULT"

Public Methods

[h2]getCallback

Method

public GetCallback getCallback()

获取已注册的Get过程中关键事件回调函数。

Returns

Type

Description

GetCallback

获取已注册的Get过程中关键事件回调函数。

[h2]getPicker

Method

public MessagePicker getPicker()

获取已经定义的消息过滤条件。

Returns

Type

Description

MessagePicker

消息的过滤条件。

[h2]getPolicy

Method

public Policy getPolicy()

获取当前消息Get策略。

Returns

Type

Description

Policy

当前消息Get策略。

[h2]toString

Method

public String toString()

把对象转化成可读的字符串。

Returns

Type

Description

String

可读的字符串。