MessageLimitConfig
constructor(channelMessageLimits: Set<ChannelMessageLimit> = setOf(), messageBufferConfig: MessageBufferConfig = MessageBufferConfig())
Parameters
channelMessageLimits
A set of ChannelMessageLimit defining the maximum number of messages to keep in memory for different channel types. By default, this is an empty set, meaning no limits are applied and all messages are kept in memory. Each channel type can have its own limit configured independently.
messageBufferConfig
Configuration for bounding the inbound NewMessageEvent buffer on selected channel types. By default, no buffering is applied — events flow through the unbuffered path. See MessageBufferConfig for details and trade-offs.