Package org.wildfly.clustering.cache
Interface BiCacheEntryLocator<I,K,V>
- Type Parameters:
I- the identifier type of the cache keyK- the key type of the located entryV- the value type of the located entry
- All Superinterfaces:
CacheEntryLocator<I,Map.Entry<K, V>>
- All Known Subinterfaces:
ImmutableSessionFactory<MV,,AV> SessionFactory<C,,MV, AV, SC> UserFactory<CV,C, T, SV, D, S>
- All Known Implementing Classes:
CompositeImmutableSessionFactory,CompositeSessionFactory,CompositeUserFactory,HotRodSessionFactory
Locates a pair of entries 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.default CompletionStage<Map.Entry<K, V>> tryValueAsync(I id) Returns the value for the specified key, if possible without contention.Methods inherited from interface org.wildfly.clustering.cache.CacheEntryLocator
findValue, tryValue
-
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:CacheEntryLocatorLocates the value in the cache with the specified identifier.- Specified by:
findValueAsyncin interfaceCacheEntryLocator<I,K> - Parameters:
id- the cache entry identifier- Returns:
- the value of the cache entry, or null if not found.
-
tryValueAsync
Description copied from interface:CacheEntryLocatorReturns the value for the specified key, if possible without contention.- Specified by:
tryValueAsyncin interfaceCacheEntryLocator<I,K> - Parameters:
id- a logical key- Returns:
- the value of the cache entry, or null if not found or unavailable.
-