due

abstract suspend fun due(partitions: Set<Int>, until: Long, perPartition: Int): List<Timer>

The timers of partitions due by until (epoch milliseconds): PENDING timers due at or before it, and FIRING ones whose claim lapses by then (a FIRING timer's Timer.dueAt is its claim's deadline). Up to perPartition of each partition, its earliest first, ties by id; the result is in that order across the partitions. So a backlog in one partition never keeps another partition's due timers out of the read. One query for every partition the caller owns, where the backend allows it.