overrideConfiguration
Allows to override certain configuration options (see com.pubnub.api.v2.PNConfigurationOverride.Builder) for this request only.
com.pubnub.api.java.v2.PNConfigurationOverride.from should be used to obtain a PNConfigurationOverride.Builder. Only options present in PNConfigurationOverride.Builder will be used for the override.
Example:
configOverride = PNConfigurationOverride.from(pubnub.configuration)
configOverride.userId(UserId("example"))
endpoint.overrideConfiguration(configOverride.build()).sync()
*Return
Returns the same instance for convenience, so Endpoint.sync or Endpoint.async can be called next.