BatchingMode

sealed interface BatchingMode

The mode of batching for the batchIntentsDecorator.

Inheritors

Types

Link copied to clipboard
data class Amount(val size: Int) : BatchingMode

Batch intents until size is reached after which the intents will be flushed one-by-one in the order they originally came.

Link copied to clipboard
data class Time(val duration: Duration) : BatchingMode

Batch intents for the duration. Each duration increment, all intents in the queue (if any) will be flushed. This process starts when the first intent is received and store is started. The intents will be flushed one-by-one in the order they originally came.