目录

Public Constructor Summary

Constructor
public GetOption.Builder()
Creates an instance of GetOption.

Public Method Summary

Return typeMethod name
GetOptionbuild()
Creates an instance of GetOption
GetOption.Builder setCallback(GetCallback callback)
Sets a callback executed when key subscription events occur.
GetOption.BuildersetPicker(MessagePicker picker)
Sets the rule for filtering messages to be received.
GetOption.Builder setPolicy(Policy policy)
Sets the policy for subscribing to messages. The DEFAULT policy is used by default.

Public Constructors

Constructor
public GetOption.Builder()
Creates an instance of GetOption.

Public Methods

Method
public GetOption build()
Creates an instance of GetOption
Method
public GetOption.Builder setCallback(GetCallback callback)
Sets a callback executed when key subscription events occur.

Parameters

Parameter nameParameter desc
callbackSubscription callback.
Method
public GetOption.Builder setPicker(MessagePicker picker)
Sets the rule for filtering messages to be received. If the rule is not specified, INCLUDE_ALL_TYPES is used.

Parameters

Parameter nameParameter desc
pickerRule for filtering received messages.
Method
public GetOption.Builder setPolicy(Policy policy)
Sets the policy for subscribing to messages. The DEFAULT policy is used by default.

Parameters

Parameter nameParameter desc
policySubscription policy.