Class FlowControlSettings.Builder
- java.lang.Object
-
- com.google.cloud.pubsublite.cloudpubsub.FlowControlSettings.Builder
-
- Enclosing class:
- FlowControlSettings
public abstract static class FlowControlSettings.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description FlowControlSettingsbuild()abstract FlowControlSettings.BuildersetBytesOutstanding(long bytes)The number of quota bytes that may be outstanding to the client.abstract FlowControlSettings.BuildersetMessagesOutstanding(long elements)The number of messages that may be outstanding to the client.
-
-
-
Method Detail
-
setBytesOutstanding
public abstract FlowControlSettings.Builder setBytesOutstanding(long bytes)
The number of quota bytes that may be outstanding to the client.
-
setMessagesOutstanding
public abstract FlowControlSettings.Builder setMessagesOutstanding(long elements)
The number of messages that may be outstanding to the client.
-
build
public FlowControlSettings build() throws com.google.api.gax.rpc.ApiException
- Throws:
com.google.api.gax.rpc.ApiException
-
-