@BetaApi(value="The surface for batching is not stable yet and may change in the future.") public class FlowController extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FlowController.FlowControlException
Base exception that signals a flow control state.
|
static class |
FlowController.FlowControlRuntimeException
Runtime exception that can be used in place of FlowControlException when an unchecked exception
is required.
|
static class |
FlowController.LimitExceededBehavior
Enumeration of behaviors that FlowController can use in case the flow control limits are
exceeded.
|
static class |
FlowController.MaxOutstandingElementCountReachedException
Exception thrown when client-side flow control is enforced based on the maximum number of
outstanding in-memory elements.
|
static class |
FlowController.MaxOutstandingRequestBytesReachedException
Exception thrown when client-side flow control is enforced based on the maximum number of
unacknowledged in-memory bytes.
|
| Constructor and Description |
|---|
FlowController(FlowControlSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
release(long elements,
long bytes) |
void |
reserve(long elements,
long bytes) |
public FlowController(FlowControlSettings settings)
public void reserve(long elements,
long bytes)
throws FlowController.FlowControlException
public void release(long elements,
long bytes)