eventsCapacity method Null safety

LDConfigBuilder eventsCapacity(
  1. int eventsCapacity
)

Set the capacity of the event buffer.

The client buffers up to this many events in memory before flushing. If the capacity is exceeded before the buffer is flushed, events will be discarded. Increasing the capacity means that events are less likely to be discarded, at the cost of potentially consuming more memory.

See LDConfigBuilder.eventsFlushIntervalMillis for configuring the flush interval.

Implementation

LDConfigBuilder eventsCapacity(int eventsCapacity) {
  this._eventsCapacity = eventsCapacity;
  return this;
}