Interface BiCacheEntryCreator<I,K,V,C>
- Type Parameters:
I- the identifier type of the cache keyK- the key type of the created entryV- the value type of the created entryC- the context of the created entry
- All Superinterfaces:
CacheEntryCreator<I, Map.Entry<K,V>, C>
- All Known Subinterfaces:
SessionFactory<DC,MV, AV, SC>, UserFactory<CV, C, T, SV, D, S>
- All Known Implementing Classes:
CompositeSessionFactory, CompositeUserFactory, HotRodSessionFactory
Creates a pair of entries in a cache.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptioncreateEntry(I id, C context) Creates a value in the cache, if it does not already exist.default CompletionStage<Map.Entry<K, V>> createValueAsync(I id, C context) Creates a value in the cache, if it does not already exist.Methods inherited from interface CacheEntryCreator
createValue
-
Method Details
-
createEntry
Creates a value in the cache, if it does not already exist.- Parameters:
id- the cache entry identifier.context- the creation context- Returns:
- the new value, or the existing value the cache entry already exists.
-
createValueAsync
Description copied from interface:CacheEntryCreatorCreates a value in the cache, if it does not already exist.- Specified by:
createValueAsyncin interfaceCacheEntryCreator<I,K, V> - Parameters:
id- the cache entry identifier.context- the context of the created value- Returns:
- the new value, or the existing value the cache entry already exists.
-