-
Notifications
You must be signed in to change notification settings - Fork 29
About thread safety
Guillaume R edited this page May 1, 2018
·
2 revisions
-
Unless otherwise stated in their documentation, config parsers and writers aren't thread-safe.
-
ConfigSpec
andConversionTable
aren't thread-safe. -
Configs are thread-safe only if they are created with a specific method like
Config.inMemoryConcurrent()
ormyConfigFormat.createConcurrentConfig()
. -
The thread-safety of configurations created with
Config.wrap(Map<String, Object>, ConfigFormat)
entirely depends on the given map. If it's aConcurrentHashMap
then the configuration is thread-safe. -
ObjectBinder
andObjectConverter
are thread-safe. -
The configurations created by
ObjectBinder
are thread-safe only if the bound object is safe.