Package org.infinispan.persistence.util
Interface EntryLoader<K,V>
-
public interface EntryLoader<K,V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletionStage<InternalCacheEntry<K,V>>loadAndStoreInDataContainer(InvocationContext ctx, java.lang.Object key, int segment, org.infinispan.commands.FlagAffectedCommand cmd)Load and store the entry if present in the data container, returning the entry in the CompletionStage
-
-
-
Method Detail
-
loadAndStoreInDataContainer
java.util.concurrent.CompletionStage<InternalCacheEntry<K,V>> loadAndStoreInDataContainer(InvocationContext ctx, java.lang.Object key, int segment, org.infinispan.commands.FlagAffectedCommand cmd)
Load and store the entry if present in the data container, returning the entry in the CompletionStage- Parameters:
ctx- context that generated this requestkey- key to load from the storesegment- segment of the key to loadcmd- the command that generated this load request- Returns:
- stage that when complete contains the loaded entry. If the entry is non null the entry is also written into the underlying data container
-
-