DeliveryPolicy
data class DeliveryPolicy(val capacity: Int = DEFAULT_CAPACITY, val overflow: Overflow = Overflow.SUSPEND)
How an in-process fabric buffers frames for one receiver: a bounded capacity and an overflow strategy. There is deliberately no UNLIMITED option — unbounded delivery is the defect this type exists to make unrepresentable (#701).
Parameters
capacity
frames buffered per receiver, from 1 up to Int.MAX_VALUE - 1. Int.MAX_VALUE is refused because it is Channel.UNLIMITED: a channel built with it has no bound and ignores overflow, so asking for a very large buffer would quietly ask for an unbounded one.
Throws
if capacity is outside that range.