Class FlowControlSettings
- java.lang.Object
-
- com.google.cloud.pubsublite.cloudpubsub.FlowControlSettings
-
- All Implemented Interfaces:
Serializable
public abstract class FlowControlSettings extends Object implements Serializable
Describes limits on bytes and messages outstanding for a single partition Pub/Sub Lite subscriber. These are hard limits enforced by the server.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFlowControlSettings.Builder
-
Constructor Summary
Constructors Constructor Description FlowControlSettings()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static FlowControlSettings.Builderbuilder()Create a new builder for these settings.abstract longbytesOutstanding()The number of quota bytes that may be outstanding to the client.abstract longmessagesOutstanding()The number of messages that may be outstanding to the client.
-
-
-
Method Detail
-
builder
public static FlowControlSettings.Builder builder()
Create a new builder for these settings.
-
bytesOutstanding
public abstract long bytesOutstanding()
The number of quota bytes that may be outstanding to the client.
-
messagesOutstanding
public abstract long messagesOutstanding()
The number of messages that may be outstanding to the client.
-
-