Package org.wildfly.clustering.cache
Interface BiLocator<I,K,V>
Locates a pair of values from a cache.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionLocates the value in the cache with the specified identifier.default CompletionStage<Map.Entry<K, V>> findValueAsync(I id) Locates the value in the cache with the specified identifier.default Map.Entry<CompletionStage<K>, CompletionStage<V>> Locates the value in the cache with the specified identifier, if available.Methods inherited from interface org.wildfly.clustering.cache.Locator
findValue, tryValue, tryValueAsync
-
Method Details
-
findEntry
Locates the value in the cache with the specified identifier.- Parameters:
id- the cache entry identifier- Returns:
- the value of the cache entry, or null if not found.
-
tryEntry
Locates the value in the cache with the specified identifier, if available.- Parameters:
id- the cache entry identifier- Returns:
- the value of the cache entry, or null if not found or is in use.
-
findValueAsync
Description copied from interface:LocatorLocates the value in the cache with the specified identifier.- Specified by:
findValueAsyncin interfaceLocator<I,K> - Parameters:
id- the cache entry identifier- Returns:
- the value of the cache entry, or null if not found.
-