Queue Repository
class QueueRepository(context: Context, logs: RingLog, crypto: CryptoProvider, openHelperFactory: SupportSQLiteOpenHelper.Factory? = null)
Constructors
Link copied to clipboard
constructor(context: Context, logs: RingLog, crypto: CryptoProvider, openHelperFactory: SupportSQLiteOpenHelper.Factory? = null)
Functions
Link copied to clipboard
Retention: delete SENT and FAILED events older than the configured window. This supports minimization requirements and prevents unbounded local storage growth.
Link copied to clipboard
Link copied to clipboard
Reactive queue depth: emits on every DB change that affects the non-SENT count.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Record a batch-level failure for an event without incrementing its attempts counter. See QueueDao.markBatchFailureNoAttemptBump.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Reset SENDING rows older than staleBeforeEpochMs back to PENDING. Called on SDK init so crash-abandoned events don't rot forever. Returns number of rows rescued.