Package-level declarations

Types

Link copied to clipboard
class BatchClosedException(val coordinatorName: String) : IllegalStateException
Link copied to clipboard
class BatchCloseTimeoutException(val coordinatorName: String, val timeout: Duration) : IllegalStateException
Link copied to clipboard

Coordinates bounded, non-blocking admission and graceful shutdown for storage-independent reactive batches.

Link copied to clipboard
sealed interface BatchItemResult

The terminal result for one input in a storage batch.

Link copied to clipboard
data class BatchOptions(val maxSize: Int, val maxDelay: Duration, val maxPendingItems: Int)

Storage-independent limits for BatchCoordinator and KeyedBatchCoordinator.

Link copied to clipboard
class BatchOverflowException(val coordinatorName: String, val maxPendingItems: Int) : IllegalStateException, RecoverableException
Link copied to clipboard
Link copied to clipboard
fun interface BatchWriter<T : Any>

Executes one storage batch.

Link copied to clipboard
class KeyedBatchCoordinator<T : Any, K : Any>(val name: String, val options: BatchOptions, val laneCount: Int, keySelector: (T) -> K, writer: BatchWriter<T>) : GracefullyStoppable

Partitions submissions into a fixed number of serial batch lanes.