Package com.google.api.gax.batching
Class FlowControlSettings
java.lang.Object
com.google.api.gax.batching.FlowControlSettings
Settings for
FlowController.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowControlSettingsabstract FlowController.LimitExceededBehaviorThe behavior ofFlowControllerwhen the specified limits are exceeded.abstract LongMaximum number of outstanding elements to keep in memory before enforcing flow control.abstract LongMaximum number of outstanding bytes to keep in memory before enforcing flow control.static FlowControlSettings.Builderabstract FlowControlSettings.Builder
-
Constructor Details
-
FlowControlSettings
public FlowControlSettings()
-
-
Method Details
-
getDefaultInstance
-
getMaxOutstandingElementCount
Maximum number of outstanding elements to keep in memory before enforcing flow control. -
getMaxOutstandingRequestBytes
Maximum number of outstanding bytes to keep in memory before enforcing flow control. -
getLimitExceededBehavior
The behavior ofFlowControllerwhen the specified limits are exceeded. Defaults to Block.The expected behavior for each of these values is:
- ThrowException: the FlowController will throw a
FlowController.FlowControlExceptionif any of the limits are exceeded. - Block: the reserve() method of FlowController will block until the quote is available to be reserved.
- Ignore: all flow control limits will be ignored; the FlowController is disabled.
- ThrowException: the FlowController will throw a
-
toBuilder
-
newBuilder
-