Expose Batch Submit Manager
Batch submit manager for batching high-frequency operations to reduce network requests.
Features: 1. Debouncing: multiple calls within the specified delay are merged into a single submit. 2. State machine: uses clear state transitions to avoid race conditions. 3. Thread safety: uses a unified state lock for multi-thread safety. 4. Generic support: supports different data types for batch processing. 5. Ordering: uses LinkedHashSet to maintain insertion order. 6. Deduplication: automatically removes duplicate tasks (based on equals and hashCode). 7. Connection-aware: automatically pauses/resumes task processing based on connection status.
State machine: IDLE ⇄ ACTIVE
State descriptions: - IDLE: idle, no pending data, no scheduled tasks. - ACTIVE: active, has pending data or is currently processing.
Since
5.30.0