@BetaApi(value="The surface for batching is not stable yet and may change in the future.") public abstract class FlowControlSettings extends Object
FlowController.| Modifier and Type | Class and Description |
|---|---|
static class |
FlowControlSettings.Builder |
| Constructor and Description |
|---|
FlowControlSettings() |
| Modifier and Type | Method and Description |
|---|---|
static FlowControlSettings |
getDefaultInstance() |
abstract FlowController.LimitExceededBehavior |
getLimitExceededBehavior()
The behavior of
FlowController when the specified limits are exceeded. |
abstract Long |
getMaxOutstandingElementCount()
Maximum number of outstanding elements to keep in memory before enforcing flow control.
|
abstract Long |
getMaxOutstandingRequestBytes()
Maximum number of outstanding bytes to keep in memory before enforcing flow control.
|
static FlowControlSettings.Builder |
newBuilder() |
FlowControlSettings.Builder |
toBuilder() |
public static FlowControlSettings getDefaultInstance()
@Nullable public abstract Long getMaxOutstandingElementCount()
@Nullable public abstract Long getMaxOutstandingRequestBytes()
public abstract FlowController.LimitExceededBehavior getLimitExceededBehavior()
FlowController when the specified limits are exceeded. Defaults to
Block.
The expected behavior for each of these values is:
FlowController.FlowControlException if any of
the limits are exceeded.
public FlowControlSettings.Builder toBuilder()
public static FlowControlSettings.Builder newBuilder()