spring-framework / org.springframework.messaging.simp.config / MessageBrokerRegistry / setCacheLimit

setCacheLimit

open fun setCacheLimit(cacheLimit: Int): MessageBrokerRegistry

Configure the cache limit to apply for registrations with the broker.

This is currently only applied for the destination cache in the subscription registry. The default cache limit there is 1024.

Since
4.3.2

See Also
org.springframework.messaging.simp.broker.DefaultSubscriptionRegistry#setCacheLimit