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 class
FlowControlSettings.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.Builder
builder()
Create a new builder for these settings.abstract long
bytesOutstanding()
The number of quota bytes that may be outstanding to the client.abstract long
messagesOutstanding()
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.
-
-