Class ConsumerSettings.Builder (1.1.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public abstract static class ConsumerSettings . Builder
Inheritance
java.lang.Object >
ConsumerSettings.Builder
Constructors
Builder()
Methods
build()
public abstract ConsumerSettings build ()
setAutocommit(boolean autocommit)
public abstract ConsumerSettings . Builder setAutocommit ( boolean autocommit )
Parameter
Name
Description
autocommit
boolean
setPerPartitionFlowControlSettings(FlowControlSettings settings)
public abstract ConsumerSettings . Builder setPerPartitionFlowControlSettings ( FlowControlSettings settings )
The per-partition flow control settings.
Parameter
Name
Description
settings
com.google.cloud.pubsublite.cloudpubsub.FlowControlSettings
setSubscriptionPath(SubscriptionPath path)
public abstract ConsumerSettings . Builder setSubscriptionPath ( SubscriptionPath path )
The subscription path to use. Only the topic corresponding to this subscription can be
subscribed to.
Parameter
Name
Description
path
com.google.cloud.pubsublite.SubscriptionPath
setTopicPathOverride(TopicPath topicPath)
public abstract ConsumerSettings . Builder setTopicPathOverride ( TopicPath topicPath )
An override for the TopicPath used by this consumer.
When this is set, the topic path of the subscription will not be fetched: instead, the
topic used in methods will be compared with the provided TopicPath object.
This is useful if you do not have the pubsublite.subscriptions.get permission for the
subscription.
Parameter
Name
Description
topicPath
com.google.cloud.pubsublite.TopicPath
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 2026-03-09 UTC.
[null,null,["Last updated 2026-03-09 UTC."],[],[]]