目录

Public Constructor Summary

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

Public Method Summary

Return typeMethod name
PutOptionbuild()
Creates an instance of PutOption
PutOption.Builder setCallback(PutCallback callback)
Sets a callback executed when key publishing events occur.
PutOption.Builder setPolicy(Policy policy)
Sets the policy for publishing messages. The DEFAULT policy is used by default.

Public Constructors

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

Public Methods

Method
public PutOption build()
Creates an instance of PutOption
Method
public PutOption.Builder setCallback(PutCallback callback)
Sets a callback executed when key publishing events occur.

Parameters

Parameter nameParameter desc
callbackPublish callback.
Method
public PutOption.Builder setPolicy(Policy policy)
Sets the policy for publishing messages. The DEFAULT policy is used by default.

Parameters

Parameter nameParameter desc
policyPublish policy.