withFlushQueueSize method

RudderConfigBuilder withFlushQueueSize(
  1. int flushQueueSize
)

Sets the flush queue size for batching events.

Determines how many events to batch together before sending to the server. Valid range is 1-100. Values outside this range will use the default.

flushQueueSize - Number of events to batch (min = 1, max = 100). Returns this RudderConfigBuilder instance for method chaining.

Implementation

RudderConfigBuilder withFlushQueueSize(int flushQueueSize) {
  if (flushQueueSize < 1 || flushQueueSize > 100) {
    RudderLogger.logError(
        "flushQueueSize is out of range. Min: 1, Max: 100. Set to default");
    return this;
  }
  __flushQueueSize = flushQueueSize;
  return this;
}