Class BatchingSettings.Builder

  • Enclosing class:
    BatchingSettings

    public abstract static class BatchingSettings.Builder
    extends java.lang.Object
    See the class documentation of BatchingSettings for a description of the different values that can be set.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setElementCountThreshold

        public abstract BatchingSettings.Builder setElementCountThreshold​(java.lang.Long elementCountThreshold)
        Set the element count threshold to use for batching. After this many elements are accumulated, they will be wrapped up in a batch and sent.
      • setRequestByteThreshold

        public abstract BatchingSettings.Builder setRequestByteThreshold​(java.lang.Long requestByteThreshold)
        Set the request byte threshold to use for batching. After this many bytes are accumulated, the elements will be wrapped up in a batch and sent.
      • setDelayThreshold

        public abstract BatchingSettings.Builder setDelayThreshold​(org.threeten.bp.Duration delayThreshold)
        Set the delay threshold to use for batching. After this amount of time has elapsed (counting from the first element added), the elements will be wrapped up in a batch and sent. This value should not be set too high, usually on the order of milliseconds. Otherwise, calls might appear to never complete.
      • setIsEnabled

        public abstract BatchingSettings.Builder setIsEnabled​(java.lang.Boolean enabled)
        Set if the batch should be enabled. If set to false, the batch logic will be disabled and the simple API call will be used. Default to true.