Package com.google.api.gax.batching
package com.google.api.gax.batching
-
ClassDescriptionA simple ThresholdBatchReceiver that just accumulates batches.BatchEntry<ElementT,
ElementResultT> This class contains the element and its corresponding unresolved future, which would be resolved when batch issuccessful
orfailed
.Batcher<ElementT,ElementResultT> Represents a batching context where individual elements will be accumulated and flushed in a large batch request at some point in the future.BatcherImpl<ElementT,ElementResultT, RequestT, ResponseT> Queues up the elements untilBatcherImpl.flush()
is called; once batching is over, returned future resolves.BatchingCallSettings<ElementT,ElementResultT, RequestT, ResponseT> This is an extension ofUnaryCallSettings
class to configure aUnaryCallable
for calls to an API method that supports batching.BatchingCallSettings.Builder<ElementT,ElementResultT, RequestT, ResponseT> A base builder class forBatchingCallSettings
.BatchingDescriptor<ElementT,ElementResultT, RequestT, ResponseT> An adapter that packs and unpacks the elements in and out of batch requests and responses.Represents exception occurred during batching.Wraps aFlowController
for use by batching.BatchingRequestBuilder<ElementT,RequestT> Adapter to pack individual elements into a larger batch request.Represents the batching settings to use for an API method that is capable of batching.See the class documentation ofBatchingSettings
for a description of the different values that can be set.The interface representing a threshold to be used in ThresholdBatcher.Factory methods for general-purpose batching thresholds.BatchMerger<B>Represent the resource used by a batch including element and byte.Settings for dynamic flow controlInterface representing an object that provides a numerical count given an object of the parameterized type.Record the statistics of flow control events.A flow control event.Provides flow control capability.Base exception that signals a flow control state.Runtime exception that can be used in place of FlowControlException when an unchecked exception is required.Enumeration of behaviors that FlowController can use in case the flow control limits are exceeded.Exception thrown when client-side flow control is enforced based on the maximum number of outstanding in-memory elements.Exception thrown when client-side flow control is enforced based on the maximum number of unacknowledged in-memory bytes.Settings forFlowController
.A threshold which accumulates a count based on the provided ElementCounter.RequestBuilder<RequestT>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.Builder for a ThresholdBatcher.ThresholdBatchReceiver<BatchT>Interface representing an object that receives batches from a ThresholdBatcher and takes action on them.