class Google::Gax::BundleOptions
Holds values used to configure bundling.
The xxx_threshold attributes are used to configure when the bundled request should be made.
Public Class Methods
new(element_count_threshold: 0, element_count_limit: 0, request_byte_threshold: 0, request_byte_limit: 0, delay_threshold_millis: 0)
click to toggle source
@return [Numeric] the bundled request will be sent once the count of outstanding elements in the repeated field reaches this value.
@!attribute element_count_limit
@return [Numeric] represents a hard limit on the number of elements in the repeated field of the bundle; if adding a request to a bundle would exceed this value, the bundle is sent and the new request is added to a fresh bundle. It is invalid for a single request to exceed this limit.
@!attribute request_byte_threshold
@return [Numeric] the bundled request will be sent once the count of bytes in the request reaches this value. Note that this value is pessimistically approximated by summing the bytesizes of the elements in the repeated field, and therefore may be an under-approximation.
@!attribute request_byte_limit
@return [Numeric] represents a hard limit on the size of the bundled request; if adding a request to a bundle would exceed this value, the bundle is sent and the new request is added to a fresh bundle. It is invalid for a single request to exceed this limit. Note that this value is pessimistically approximated by summing the bytesizes of the elements in the repeated field, with a buffer applied to correspond to the resulting under-approximation.
@!attribute delay_threshold_millis
@return [Numeric] the bundled request will be sent this amount of time after the first element in the bundle was added to it.
Calls superclass method
# File lib/google/gax/settings.rb, line 304 def initialize(element_count_threshold: 0, element_count_limit: 0, request_byte_threshold: 0, request_byte_limit: 0, delay_threshold_millis: 0) super( element_count_threshold, element_count_limit, request_byte_threshold, request_byte_limit, delay_threshold_millis) end