public abstract class BaseDistributionInterceptor extends ClusteringInterceptor
Modifier and Type | Field and Description |
---|---|
protected ClusteringDependentLogic |
cdl |
protected DistributionManager |
dm |
cf, dataContainer, entryFactory, lockManager, needReliableReturnValues, stateTransferManager
defaultSynchronous, rpcManager
cacheConfiguration
Constructor and Description |
---|
BaseDistributionInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected Log |
getLog() |
protected abstract Object |
handleWriteCommand(InvocationContext ctx,
WriteCommand command,
org.infinispan.interceptors.distribution.BaseDistributionInterceptor.RecipientGenerator recipientGenerator,
boolean skipRemoteGet,
boolean skipL1Invalidation) |
void |
injectDependencies(DistributionManager distributionManager,
ClusteringDependentLogic cdl) |
protected boolean |
isSingleOwnerAndLocal(org.infinispan.interceptors.distribution.BaseDistributionInterceptor.RecipientGenerator recipientGenerator)
If a single owner has been configured and the target for the key is the local address, it returns true.
|
protected InternalCacheEntry |
retrieveFromRemoteSource(Object key,
InvocationContext ctx,
boolean acquireRemoteLock,
FlagAffectedCommand command)
Retrieves a cache entry from a remote source.
|
Object |
visitPutMapCommand(InvocationContext ctx,
PutMapCommand command) |
Object |
visitRemoveCommand(InvocationContext ctx,
RemoveCommand command) |
Object |
visitReplaceCommand(InvocationContext ctx,
ReplaceCommand command) |
configure, ignorePreviousValueOnBackup, injectDependencies, isNeedReliableReturnValues, needsRemoteGet
init, inject, isLocalModeForced, isSyncCommitPhase, isSynchronous, shouldInvokeRemoteTxCommand, transactionRemotelyPrepared
getLockAcquisitionTimeout, getNext, handleDefault, hasNext, hasSkipLocking, injectConfiguration, invokeNextInterceptor, setNext
visitApplyDeltaCommand, visitClearCommand, visitCollection, visitCommitCommand, visitDistributedExecuteCommand, visitEntrySetCommand, visitEvictCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitPutKeyValueCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitValuesCommand
protected DistributionManager dm
protected ClusteringDependentLogic cdl
protected Log getLog()
getLog
in class CommandInterceptor
public void injectDependencies(DistributionManager distributionManager, ClusteringDependentLogic cdl)
protected InternalCacheEntry retrieveFromRemoteSource(Object key, InvocationContext ctx, boolean acquireRemoteLock, FlagAffectedCommand command) throws Exception
ClusteringInterceptor
ClusteredGetCommand
and some form of quorum of responses if the responses returned are inconsistent - often the case if there is a
rehash in progress, involving nodes that the key maps to.retrieveFromRemoteSource
in class ClusteringInterceptor
key
- key to look upException
public Object visitPutMapCommand(InvocationContext ctx, PutMapCommand command) throws Throwable
visitPutMapCommand
in interface Visitor
visitPutMapCommand
in class AbstractVisitor
Throwable
public Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable
visitRemoveCommand
in interface Visitor
visitRemoveCommand
in class AbstractVisitor
Throwable
public Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable
visitReplaceCommand
in interface Visitor
visitReplaceCommand
in class AbstractVisitor
Throwable
protected abstract Object handleWriteCommand(InvocationContext ctx, WriteCommand command, org.infinispan.interceptors.distribution.BaseDistributionInterceptor.RecipientGenerator recipientGenerator, boolean skipRemoteGet, boolean skipL1Invalidation) throws Throwable
Throwable
protected boolean isSingleOwnerAndLocal(org.infinispan.interceptors.distribution.BaseDistributionInterceptor.RecipientGenerator recipientGenerator)
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.