@Deprecated public class DistCacheWriterInterceptor extends CacheWriterInterceptor
If the cache store is shared, only the primary owner of the key writes to the cache store.
If the cache store is not shared, every owner of a key writes to the cache store.
In non-tx caches, if the originator is an owner, the command is executed there twice. The first time,
(isOriginLocal() == true) we don't write anything to the cache store; the second time,
the normal rules apply.
For clear operations, either only the originator of the command clears the cache store (if it is shared), or every node clears its cache store (if it is not shared). Note that in non-tx caches, this happens without holding a lock on the primary owner of all the keys.
CacheWriterInterceptor.Updaterenabled, persistenceManagercacheConfiguration| Constructor and Description |
|---|
DistCacheWriterInterceptor()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected Log |
getLog()
Deprecated.
|
void |
inject(DistributionManager dm,
Transport transport,
ClusteringDependentLogic cdl)
Deprecated.
|
protected boolean |
isProperWriter(InvocationContext ctx,
FlagAffectedCommand command,
Object key)
Deprecated.
|
protected boolean |
skipSharedStores(InvocationContext ctx,
Object key,
FlagAffectedCommand command)
Deprecated.
|
Object |
visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
Deprecated.
|
Object |
visitPutMapCommand(InvocationContext ctx,
PutMapCommand command)
Deprecated.
|
Object |
visitRemoveCommand(InvocationContext ctx,
RemoveCommand command)
Deprecated.
|
Object |
visitReplaceCommand(InvocationContext ctx,
ReplaceCommand command)
Deprecated.
|
commitCommand, disableInterceptor, getWritesToTheStores, init, isStoreEnabled, isStoreEnabled, resetStatistics, start, store, visitClearCommand, visitCommitCommand, visitPrepareCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitWriteManyCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommandcheckStatisticsUsed, getStatisticsEnabled, setStatisticsEnabledgetCacheWithFlags, getLockAcquisitionTimeout, getNext, handleDefault, hasNext, hasSkipLocking, injectConfiguration, invokeNextInterceptor, setNextvisitApplyDeltaCommand, visitCollection, visitDistributedExecuteCommand, visitEntrySetCommand, visitEvictCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeysInGroupCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommandprotected Log getLog()
getLog in class CacheWriterInterceptorpublic void inject(DistributionManager dm, Transport transport, ClusteringDependentLogic cdl)
public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
visitPutKeyValueCommand in interface VisitorvisitPutKeyValueCommand in class CacheWriterInterceptorThrowablepublic Object visitPutMapCommand(InvocationContext ctx, PutMapCommand command) throws Throwable
visitPutMapCommand in interface VisitorvisitPutMapCommand in class CacheWriterInterceptorThrowablepublic Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable
visitRemoveCommand in interface VisitorvisitRemoveCommand in class CacheWriterInterceptorThrowablepublic Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable
visitReplaceCommand in interface VisitorvisitReplaceCommand in class CacheWriterInterceptorThrowableprotected boolean skipSharedStores(InvocationContext ctx, Object key, FlagAffectedCommand command)
skipSharedStores in class CacheWriterInterceptorprotected boolean isProperWriter(InvocationContext ctx, FlagAffectedCommand command, Object key)
isProperWriter in class CacheWriterInterceptorCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.