Package org.wildfly.clustering.cache
Interface BiCreator<I,K,V,C>
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 org.wildfly.clustering.cache.Creator
createValue
-
Method Details
-
createEntry
Creates a value in the cache, if it does not already exist.- Parameters:
id- the cache entry identifier.- Returns:
- the new value, or the existing value the cache entry already exists.
-
createValueAsync
Description copied from interface:CreatorCreates a value in the cache, if it does not already exist.- Specified by:
createValueAsyncin interfaceCreator<I,K, V> - Parameters:
id- the cache entry identifier.- Returns:
- the new value, or the existing value the cache entry already exists.
-