Class PslReadDataSourceOptions.Builder (1.0.0)

publicabstractstaticclass PslReadDataSourceOptions.Builder

Inheritance

java.lang.Object > PslReadDataSourceOptions.Builder

Constructors

Builder()

publicBuilder()

Methods

build()

publicabstractPslReadDataSourceOptionsbuild()
Returns
Type Description
PslReadDataSourceOptions

setCredentialsKey(String credentialsKey)

publicabstractPslReadDataSourceOptions.BuildersetCredentialsKey(StringcredentialsKey)
Parameter
Name Description
credentialsKey String
Returns
Type Description
PslReadDataSourceOptions.Builder

setFlowControlSettings(FlowControlSettings flowControlSettings)

publicabstractPslReadDataSourceOptions.BuildersetFlowControlSettings(FlowControlSettingsflowControlSettings)
Parameter
Name Description
flowControlSettings com.google.cloud.pubsublite.cloudpubsub.FlowControlSettings
Returns
Type Description
PslReadDataSourceOptions.Builder

setMaxMessagesPerBatch(long maxMessagesPerBatch)

publicabstractPslReadDataSourceOptions.BuildersetMaxMessagesPerBatch(longmaxMessagesPerBatch)
Parameter
Name Description
maxMessagesPerBatch long
Returns
Type Description
PslReadDataSourceOptions.Builder

setSubscriptionPath(SubscriptionPath subscriptionPath)

publicabstractPslReadDataSourceOptions.BuildersetSubscriptionPath(SubscriptionPathsubscriptionPath)
Parameter
Name Description
subscriptionPath com.google.cloud.pubsublite.SubscriptionPath
Returns
Type Description
PslReadDataSourceOptions.Builder

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.