Package org.infinispan.interceptors.impl
Class PassivationCacheLoaderInterceptor<K,V>
- java.lang.Object
-
- org.infinispan.interceptors.BaseAsyncInterceptor
-
- org.infinispan.interceptors.DDAsyncInterceptor
-
- org.infinispan.interceptors.impl.JmxStatsCommandInterceptor
-
- org.infinispan.interceptors.impl.CacheLoaderInterceptor<K,V>
-
- org.infinispan.interceptors.impl.PassivationCacheLoaderInterceptor<K,V>
-
- All Implemented Interfaces:
Visitor,AsyncInterceptor,JmxStatisticsExposer,EntryLoader<K,V>
public class PassivationCacheLoaderInterceptor<K,V> extends CacheLoaderInterceptor<K,V>
-
-
Field Summary
-
Fields inherited from class org.infinispan.interceptors.impl.CacheLoaderInterceptor
activation, cacheLoads, cacheMisses, entryFactory, nonBlockingExecutor, notifier, persistenceManager
-
Fields inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
cacheConfiguration
-
-
Constructor Summary
Constructors Constructor Description PassivationCacheLoaderInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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-
Methods inherited from class org.infinispan.interceptors.impl.CacheLoaderInterceptor
canLoad, disableStore, getCacheLoaderLoads, getCacheLoaderMisses, getStores, hasSkipLoadFlag, isConditional, loadIfNeeded, loadInContext, resetStatistics, sendNotification, skipLoadForWriteCommand, start, visitComputeCommand, visitComputeIfAbsentCommand, visitEntrySetCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeysInGroupCommand, visitGetKeyValueCommand, visitKeySetCommand, visitPutKeyValueCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitRemoveCommand, visitReplaceCommand, visitSizeCommand
-
Methods inherited from class org.infinispan.interceptors.impl.JmxStatsCommandInterceptor
getStatisticsEnabled, onStart, setStatisticsEnabled
-
Methods inherited from class org.infinispan.interceptors.DDAsyncInterceptor
handleDefault, visitClearCommand, visitCommand, visitCommitCommand, visitEvictCommand, visitInvalidateCommand, visitInvalidateL1Command, visitLockControlCommand, visitPrepareCommand, visitPutMapCommand, visitRollbackCommand, visitUnknownCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommand
-
Methods inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
asyncInvokeNext, asyncInvokeNext, asyncInvokeNext, asyncValue, delayedNull, delayedValue, delayedValue, invokeNext, invokeNextAndExceptionally, invokeNextAndFinally, invokeNextAndHandle, invokeNextThenAccept, invokeNextThenApply, isSuccessfullyDone, makeStage, setNextInterceptor, valueOrException
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.persistence.util.EntryLoader
loadAndStoreInDataContainer
-
Methods inherited from interface org.infinispan.commands.Visitor
visitRemoveExpiredCommand
-
-
-
-
Method Detail
-
loadAndStoreInDataContainer
public CompletionStage<InternalCacheEntry<K,V>> loadAndStoreInDataContainer(InvocationContext ctx, Object key, int segment, FlagAffectedCommand cmd)
Description copied from interface:EntryLoaderLoad and store the entry if present in the data container, returning the entry in the CompletionStage- Specified by:
loadAndStoreInDataContainerin interfaceEntryLoader<K,V>- Overrides:
loadAndStoreInDataContainerin classCacheLoaderInterceptor<K,V>- 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
-
-