Send feedback
Class ConsumerSettings.Builder (1.1.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_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
Send feedback
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 2024-03-22 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?