The mutators are used technically outside the scope of the methods that 
actually operate on the common persisted config on the locator. We "atomically" 
get a CacheConfig object representation of the persisted config (essentially a 
copy), mutate it, and then it gets written back -- if you look at the way this 
is used in LocatorClusterManagementService it would make this clear, since the 
underlying method that does this acquires a lock. So in this case it's thread 
safe whether you modify in-place or not. 

[ Full content available at: https://github.com/apache/geode/pull/3059 ]
This message was relayed via gitbox.apache.org for 
[email protected]

Reply via email to