Package org.infinispan.interceptors.impl
Class ClusteredCacheLoaderInterceptor<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.ClusteredCacheLoaderInterceptor<K,V>
-
- All Implemented Interfaces:
Visitor,AsyncInterceptor,JmxStatisticsExposer,EntryLoader<K,V>
- Direct Known Subclasses:
PassivationClusteredCacheLoaderInterceptor
public class ClusteredCacheLoaderInterceptor<K,V> extends CacheLoaderInterceptor<K,V>
The same as a regular cache loader interceptor, except that it contains additional logic to force loading from the cache loader if needed on a remote node, in certain conditions.- Since:
- 9.0
- Author:
- Manik Surtani
-
-
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 ClusteredCacheLoaderInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanLoad(Object key)protected booleanskipLoadForWriteCommand(WriteCommand cmd, Object key, InvocationContext ctx)-
Methods inherited from class org.infinispan.interceptors.impl.CacheLoaderInterceptor
disableStore, getCacheLoaderLoads, getCacheLoaderMisses, getStores, hasSkipLoadFlag, isConditional, loadAndStoreInDataContainer, loadIfNeeded, loadInContext, resetStatistics, sendNotification, 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
-
skipLoadForWriteCommand
protected boolean skipLoadForWriteCommand(WriteCommand cmd, Object key, InvocationContext ctx)
- Overrides:
skipLoadForWriteCommandin classCacheLoaderInterceptor<K,V>
-
canLoad
protected boolean canLoad(Object key)
- Overrides:
canLoadin classCacheLoaderInterceptor<K,V>
-
-