- 2.59.0 (latest)
- 2.58.0
- 2.57.0
- 2.55.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.1
- 2.47.0
- 2.46.1
- 2.45.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.1
- 2.33.0
- 2.32.1
- 2.31.1
- 2.30.1
- 2.24.0
- 2.23.3
- 2.22.0
- 2.21.0
- 2.20.1
- 2.19.6
- 2.18.7
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.2
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.1
- 2.7.1
Package com.google.api.gax.batching (2.41.0)
GitHub Repository |
Settings Classes
Settings classes can be used to configure credentials, endpoints, and retry settings for a Client.
Settings | Description |
---|---|
com.google.api.gax.batching.BatchingCallSettings | This is an extension of UnaryCallSettings class to configure a UnaryCallable for calls to an API method that supports batching. The batching settings are provided using the instance of BatchingSettings. |
com.google.api.gax.batching.BatchingSettings |
Represents the batching settings to use for an API method that is capable of batching.
By default the settings are configured to not use batching (i.e. the batch size threshold is 1). This is the safest default behavior, which has meaning in all possible |
com.google.api.gax.batching.DynamicFlowControlSettings | Settings for dynamic flow control |
com.google.api.gax.batching.FlowControlSettings | Settings for FlowController. |
Classes
Class | Description |
---|---|
com.google.api.gax.batching.AccumulatingBatchReceiver | A simple ThresholdBatchReceiver that just accumulates batches. |
com.google.api.gax.batching.BatchEntry | This class contains the element and its corresponding unresolved future, which would be resolved when batch is successful or failed. |
com.google.api.gax.batching.BatcherImpl |
Queues up the elements until #flush() is called; once batching is over, returned future
resolves.
This class is not thread-safe, and expects to be used from a single thread. |
com.google.api.gax.batching.BatchingCallSettings.Builder | A base builder class for BatchingCallSettings. See the class documentation of BatchingCallSettings for a description of the different values that can be set. |
com.google.api.gax.batching.BatchingFlowController | Wraps a FlowController for use by batching. |
com.google.api.gax.batching.BatchingSettings.Builder | See the class documentation of BatchingSettings for a description of the different values that can be set. |
com.google.api.gax.batching.BatchingThresholds | Factory methods for general-purpose batching thresholds. |
com.google.api.gax.batching.DynamicFlowControlSettings.Builder | |
com.google.api.gax.batching.FlowControlEventStats |
Record the statistics of flow control events.
This class is populated by FlowController, which will record throttling events. Currently it only keeps the last flow control event, but it could be expanded to record more information in |
com.google.api.gax.batching.FlowControlEventStats.FlowControlEvent | A flow control event. Record throttled time if LimitExceededBehavior is LimitExceededBehavior#Block, or the exception if the behavior is LimitExceededBehavior#ThrowException. |
com.google.api.gax.batching.FlowControlSettings.Builder | |
com.google.api.gax.batching.FlowController | Provides flow control capability. |
com.google.api.gax.batching.NumericThreshold | A threshold which accumulates a count based on the provided ElementCounter. |
com.google.api.gax.batching.PartitionKey | |
com.google.api.gax.batching.ThresholdBatcher | Queues up elements until either a duration of time has passed or any threshold in a given set of thresholds is breached, and then delivers the elements in a batch to the consumer. |
com.google.api.gax.batching.ThresholdBatcher.Builder | Builder for a ThresholdBatcher. |
Interfaces
Interface | Description |
---|---|
com.google.api.gax.batching.BatchMerger | |
com.google.api.gax.batching.BatchResource | Represent the resource used by a batch including element and byte. It can also be extended to other things to determine if adding a new element needs to be flow controlled or if the current batch needs to be flushed. |
com.google.api.gax.batching.Batcher | Represents a batching context where individual elements will be accumulated and flushed in a large batch request at some point in the future. The buffered elements can be flushed manually or when triggered by an internal threshold. This is intended to be used for high throughput scenarios at the cost of latency. |
com.google.api.gax.batching.BatchingDescriptor |
An adapter that packs and unpacks the elements in and out of batch requests and responses.
This interface should be implemented by either a service specific client or autogenerated by gapic-generator. |
com.google.api.gax.batching.BatchingRequestBuilder |
Adapter to pack individual elements into a larger batch request.
The implementation for this interface will be implemented by service specific client or auto generated by the gapic-generator. |
com.google.api.gax.batching.BatchingThreshold | The interface representing a threshold to be used in ThresholdBatcher. Thresholds do not need to be thread-safe if they are only used inside ThresholdBatcher. |
com.google.api.gax.batching.ElementCounter | Interface representing an object that provides a numerical count given an object of the parameterized type. |
com.google.api.gax.batching.RequestBuilder | |
com.google.api.gax.batching.ThresholdBatchReceiver | Interface representing an object that receives batches from a ThresholdBatcher and takes action on them. Implementations of ThresholdBatchReceiver should be thread-safe. |
Enums
Enum | Description |
---|---|
com.google.api.gax.batching.FlowController.LimitExceededBehavior | Enumeration of behaviors that FlowController can use in case the flow control limits are exceeded. |
Exceptions
Exception | Description |
---|---|
com.google.api.gax.batching.BatchingException | Represents exception occurred during batching. |
com.google.api.gax.batching.FlowController.FlowControlException | Base exception that signals a flow control state. |
com.google.api.gax.batching.FlowController.FlowControlRuntimeException | Runtime exception that can be used in place of FlowControlException when an unchecked exception is required. |
com.google.api.gax.batching.FlowController.MaxOutstandingElementCountReachedException | Exception thrown when client-side flow control is enforced based on the maximum number of outstanding in-memory elements. |
com.google.api.gax.batching.FlowController.MaxOutstandingRequestBytesReachedException | Exception thrown when client-side flow control is enforced based on the maximum number of unacknowledged in-memory bytes. |