public class VersionedDistributionInterceptor extends TxDistributionInterceptor
TxDistributionInterceptor
that adds logic to handling prepares when entries are
versioned.BaseDistributionInterceptor.ReadManyCommandHelper<C extends VisitableCommand>, BaseDistributionInterceptor.ReadOnlyManyHelper
ClusteringInterceptor.ClusteredGetAllFuture
expirationManager, isL1Enabled, isReplicated, keyPartitioner, rvrl, timeService
cf, dataContainer, distributionManager, entryFactory, lockManager
componentRegistry, defaultSynchronous, rpcManager
cacheConfiguration
Constructor and Description |
---|
VersionedDistributionInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected Log |
getLog() |
protected CompletionStage<Object> |
prepareOnAffectedNodes(TxInvocationContext<?> ctx,
PrepareCommand command,
Collection<Address> recipients) |
protected Object[] |
unwrapFunctionalManyResultOnOrigin(InvocationContext ctx,
List<Object> keys,
Object responseValue) |
protected Object |
unwrapFunctionalResultOnOrigin(InvocationContext ctx,
Object key,
Object responseValue) |
protected Object |
wrapFunctionalManyResultOnNonOrigin(InvocationContext ctx,
Collection<?> keys,
Object[] values) |
protected Object |
wrapFunctionalResultOnNonOriginOnReturn(Object rv,
CacheEntry entry) |
protected void |
wrapRemoteEntry(InvocationContext ctx,
Object key,
CacheEntry ice,
boolean isWrite) |
checkTxCommandResponses, configure, handleRemotelyRetrievedKeys, handleTxFunctionalCommand, handleTxWriteManyCommand, handleTxWriteManyEntriesCommand, remoteGetSingleKey, remoteReadOnlyCommand, visitCommitCommand, visitComputeCommand, visitComputeIfAbsentCommand, visitLockControlCommand, visitPrepareCommand, visitPutKeyValueCommand, visitPutMapCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitRemoveCommand, visitReplaceCommand, visitRollbackCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommand
checkTopologyId, handleFunctionalReadManyCommand, handleNonTxWriteCommand, invokeRemotely, primaryReturnHandler, readNeedsRemoteValue, remoteGetMany, retrieveDistributionInfo, visitClearCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeysInGroupCommand, visitGetKeyValueCommand, visitReadOnlyKeyCommand
getSuccessfulResponseOrFail, unexpected
init, isLocalModeForced, isSynchronous, shouldInvokeRemoteTxCommand, transactionRemotelyPrepared
handleDefault, visitCommand, visitEntrySetCommand, visitEvictCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitSizeCommand, visitUnknownCommand
asyncInvokeNext, asyncInvokeNext, asyncInvokeNext, asyncValue, delayedNull, delayedValue, delayedValue, invokeNext, invokeNextAndExceptionally, invokeNextAndFinally, invokeNextAndHandle, invokeNextThenAccept, invokeNextThenApply, isSuccessfullyDone, makeStage, setNextInterceptor, valueOrException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitRemoveExpiredCommand
protected Log getLog()
getLog
in class BaseDistributionInterceptor
protected void wrapRemoteEntry(InvocationContext ctx, Object key, CacheEntry ice, boolean isWrite)
wrapRemoteEntry
in class BaseDistributionInterceptor
protected Object wrapFunctionalResultOnNonOriginOnReturn(Object rv, CacheEntry entry)
wrapFunctionalResultOnNonOriginOnReturn
in class BaseDistributionInterceptor
protected Object wrapFunctionalManyResultOnNonOrigin(InvocationContext ctx, Collection<?> keys, Object[] values)
wrapFunctionalManyResultOnNonOrigin
in class BaseDistributionInterceptor
protected Object[] unwrapFunctionalManyResultOnOrigin(InvocationContext ctx, List<Object> keys, Object responseValue)
unwrapFunctionalManyResultOnOrigin
in class BaseDistributionInterceptor
protected Object unwrapFunctionalResultOnOrigin(InvocationContext ctx, Object key, Object responseValue)
unwrapFunctionalResultOnOrigin
in class BaseDistributionInterceptor
protected CompletionStage<Object> prepareOnAffectedNodes(TxInvocationContext<?> ctx, PrepareCommand command, Collection<Address> recipients)
prepareOnAffectedNodes
in class TxDistributionInterceptor
Copyright © 2021 JBoss by Red Hat. All rights reserved.