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,PersistenceManager.StoreChangeListener,EntryLoader<K,V>
-
Field Summary
Fields inherited from class org.infinispan.interceptors.impl.CacheLoaderInterceptor
activation, cacheLoads, cacheMisses, entryFactory, nonBlockingExecutor, notifier, persistenceManagerFields inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
cacheConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadAndStoreInDataContainer(InvocationContext ctx, Object key, int segment, FlagAffectedCommand cmd) Load and store the entry if present in the data container, returning the entry in the CompletionStageMethods inherited from class org.infinispan.interceptors.impl.CacheLoaderInterceptor
canLoad, disableStore, getCacheLoaderLoads, getCacheLoaderMisses, getStores, hasSkipLoadFlag, isConditional, loadIfNeeded, loadInContext, resetStatistics, sendNotification, skipLoadForWriteCommand, start, storeChanged, visitComputeCommand, visitComputeIfAbsentCommand, visitEntrySetCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeyValueCommand, visitIracPutKeyValueCommand, visitKeySetCommand, visitPutKeyValueCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitRemoveCommand, visitReplaceCommand, visitSizeCommandMethods inherited from class org.infinispan.interceptors.impl.JmxStatsCommandInterceptor
getStatisticsEnabled, onStart, setStatisticsEnabledMethods inherited from class org.infinispan.interceptors.DDAsyncInterceptor
handleDefault, visitClearCommand, visitCommand, visitCommitCommand, visitEvictCommand, visitInvalidateCommand, visitInvalidateL1Command, visitLockControlCommand, visitPrepareCommand, visitPutMapCommand, visitRollbackCommand, visitTouchCommand, visitUnknownCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommandMethods inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
asyncInvokeNext, asyncInvokeNext, asyncInvokeNext, asyncValue, delayedNull, delayedValue, delayedValue, invokeNext, invokeNextAndExceptionally, invokeNextAndFinally, invokeNextAndHandle, invokeNextThenAccept, invokeNextThenApply, isSuccessfullyDone, makeStage, setNextInterceptor, valueOrExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.persistence.util.EntryLoader
loadAndStoreInDataContainerMethods inherited from interface org.infinispan.commands.Visitor
visitRemoveExpiredCommand
-
Constructor Details
-
PassivationCacheLoaderInterceptor
public PassivationCacheLoaderInterceptor()
-
-
Method Details
-
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
-