public abstract class BaseDistributionInterceptor extends ClusteringInterceptor
Modifier and Type | Field and Description |
---|---|
protected ClusteringDependentLogic |
cdl |
protected DistributionManager |
dm |
protected RemoteValueRetrievedListener |
rvrl |
cf, dataContainer, entryFactory, isL1Enabled, lockManager, needReliableReturnValues, stateTransferManager
defaultSynchronous, rpcManager
cacheConfiguration
Constructor and Description |
---|
BaseDistributionInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected Log |
getLog() |
protected Object |
handleNonTxWriteCommand(InvocationContext ctx,
DataWriteCommand command) |
void |
injectDependencies(DistributionManager distributionManager,
ClusteringDependentLogic cdl,
RemoteValueRetrievedListener rvrl) |
protected abstract void |
remoteGetBeforeWrite(InvocationContext ctx,
WriteCommand command,
org.infinispan.interceptors.distribution.BaseDistributionInterceptor.RecipientGenerator keygen) |
protected InternalCacheEntry |
retrieveFromRemoteSource(Object key,
InvocationContext ctx,
boolean acquireRemoteLock,
FlagAffectedCommand command,
boolean isWrite)
Retrieves a cache entry from a remote source.
|
configure, ignorePreviousValueOnBackup, injectDependencies, isNeedReliableReturnValues, isValueAvailableLocally, needsRemoteGet
getIgnoreExtraResponseFilter, getSelfDeliverFilter, init, inject, isLocalModeForced, isSyncCommitPhase, isSynchronous, shouldInvokeRemoteTxCommand, shouldTotalOrderRollbackBeInvokedRemotely, totalOrderAnycastPrepare, totalOrderBroadcastPrepare, totalOrderTxCommit, totalOrderTxRollback, transactionRemotelyPrepared
getLockAcquisitionTimeout, getNext, handleDefault, hasNext, hasSkipLocking, injectConfiguration, invokeNextInterceptor, setNext
visitApplyDeltaCommand, visitClearCommand, visitCollection, visitCommitCommand, visitDistributedExecuteCommand, visitEntrySetCommand, visitEvictCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitPutKeyValueCommand, visitPutMapCommand, visitRemoveCommand, visitReplaceCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitValuesCommand
protected DistributionManager dm
protected ClusteringDependentLogic cdl
protected RemoteValueRetrievedListener rvrl
protected Log getLog()
getLog
in class CommandInterceptor
public void injectDependencies(DistributionManager distributionManager, ClusteringDependentLogic cdl, RemoteValueRetrievedListener rvrl)
protected final InternalCacheEntry retrieveFromRemoteSource(Object key, InvocationContext ctx, boolean acquireRemoteLock, FlagAffectedCommand command, boolean isWrite) 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 upisWrite
- true
if this is triggered by a write operationException
protected final Object handleNonTxWriteCommand(InvocationContext ctx, DataWriteCommand command) throws Throwable
Throwable
protected abstract void remoteGetBeforeWrite(InvocationContext ctx, WriteCommand command, org.infinispan.interceptors.distribution.BaseDistributionInterceptor.RecipientGenerator keygen) throws Throwable
Throwable
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.