spring-framework / org.springframework.context.support / ReloadableResourceBundleMessageSource / setConcurrentRefresh

setConcurrentRefresh

open fun setConcurrentRefresh(concurrentRefresh: Boolean): Unit

Specify whether to allow for concurrent refresh behavior, i.e. one thread locked in a refresh attempt for a specific cached properties file whereas other threads keep returning the old properties for the time being, until the refresh attempt has completed.

Default is "true": this behavior is new as of Spring Framework 4.1, minimizing contention between threads. If you prefer the old behavior, i.e. to fully block on refresh, switch this flag to "false".

Since
4.1

See Also
#setCacheSeconds