-
public final class ChannelMessageLimitDefines a message limit for a specific channel type.
This class specifies the maximum number of messages to keep in memory for channels of a particular type. When the number of messages in a channel exceeds this limit (plus a 30-message buffer), the SDK automatically trims older messages from the in-memory state, keeping only the most recent messages up to the limit.
Example usage:
// Limit messaging channels to 100 messages in memory ChannelMessageLimit(channelType = "messaging", baseLimit = 1000) // Limit livestream channels to 50 messages in memory ChannelMessageLimit(channelType = "livestream", baseLimit = 500)
-
-
Field Summary
Fields Modifier and Type Field Description private final StringchannelTypeprivate final IntegerbaseLimit
-
Constructor Summary
Constructors Constructor Description ChannelMessageLimit(String channelType, Integer baseLimit)
-
Method Summary
Modifier and Type Method Description final StringgetChannelType()final IntegergetBaseLimit()-
-
Method Detail
-
getChannelType
final String getChannelType()
-
getBaseLimit
final Integer getBaseLimit()
-
-
-
-