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:
  • Constructor Details

    • FlowControlSettings

      public FlowControlSettings()
  • Method Details

    • 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.