Package org.infinispan.persistence.util
Interface EntryLoader<K,V>
-
- Type Parameters:
K
- key typeV
- value type
public interface EntryLoader<K,V>
Interface that describes methods used for loading entries from the underlyingPersistenceManager
and store those entries into theDataContainer
if necessary.- Since:
- 10.0
- Author:
- wburns
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CompletionStage<InternalCacheEntry<K,V>>
loadAndStoreInDataContainer(K key, int segment)
Load and store the entry if present in the data container, returning the entry in the CompletionStage.CompletionStage<InternalCacheEntry<K,V>>
loadAndStoreInDataContainer(InvocationContext ctx, Object key, int segment, FlagAffectedCommand cmd)
Load and store the entry if present in the data container, returning the entry in the CompletionStage
-
-
-
Method Detail
-
loadAndStoreInDataContainer
CompletionStage<InternalCacheEntry<K,V>> loadAndStoreInDataContainer(InvocationContext ctx, Object key, int segment, 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
- Since:
- 10.0
-
loadAndStoreInDataContainer
default CompletionStage<InternalCacheEntry<K,V>> loadAndStoreInDataContainer(K key, int segment)
Load and store the entry if present in the data container, returning the entry in the CompletionStage.- Parameters:
key
- key to load from the storesegment
- segment of the key to load- 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
- Since:
- 10.0
-
-