Interface BlockingReferenceMap<K,V>
- Type Parameters:
K- the key typeV- the value type
Encapsulates thread-safe references to map entries.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wildfly.clustering.server.util.Reference
Reference.Reader<T>, Reference.ReferenceReader<T,V> -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> BlockingReferenceMap <K, V> Returns a thread-safe map of the specified map.Returns a reference to the map entry for the specified key.
-
Method Details
-
reference
Returns a reference to the map entry for the specified key.- Parameters:
key- a map key- Returns:
- a reference to the map entry for the specified key.
-
of
Returns a thread-safe map of the specified map.- Type Parameters:
K- the map key typeV- the map value type- Parameters:
map- a non-thread-safe map- Returns:
- a thread-safe map of the specified map.
-