Interface SharedData
Deprecated, for removal: This API element is subject to removal in a future version.
since 8.2
Provides a mechanism to obtain shared data structures.
- Since:
- 5.7
-
Method Summary
Modifier and TypeMethodDescription<K extends Serializable,
V extends Serializable>
@NonNull Map<K,V> getMap()
Deprecated, for removal: This API element is subject to removal in a future version.Obtains a Map view of the shared data.default <K extends Serializable,
V extends Serializable>
org.apache.commons.lang3.mutable.Mutable<V>getMutable
(K key, V defaultValue) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
getMap
Deprecated, for removal: This API element is subject to removal in a future version.Obtains a Map view of the shared data. The returned Map is guaranteed thread-safe. -
getMutable
default <K extends Serializable,V extends Serializable> org.apache.commons.lang3.mutable.Mutable<V> getMutable(K key, V defaultValue) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
key
- key of the shared datadefaultValue
- default value when the shared data is absent- Returns:
- a mutable reference to the shared data at a given key.
- Since:
- 7.14
-