Package org.wildfly.clustering.cache
Interface CacheEntryCreator<I,V,C>
- Type Parameters:
I- the logical identifier of the created valueV- the created value typeC- the context of the created type
- All Known Subinterfaces:
BiCacheEntryCreator<I,K, V, C>
public interface CacheEntryCreator<I,V,C>
Creates an entry in a cache.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault VcreateValue(I id, C context) Creates a value in the cache, if it does not already exist.createValueAsync(I id, C context) Creates a value in the cache, if it does not already exist.
-
Method Details
-
createValue
Creates a value in the cache, if it does not already exist.- 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.
-
createValueAsync
Creates a value in the cache, if it does not already exist.- 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.
-