public class BiasedScatteredDistributionInterceptor extends ScatteredDistributionInterceptor
ScatteredDistributionInterceptor.PrimaryResponseGenerator, ScatteredDistributionInterceptor.PrimaryResponseHandler
ClusteringInterceptor.ClusteredGetAllFuture
cacheNotifier, functionalNotifier, groupManager, keyPartitioner, svm, timeService
cf, dataContainer, distributionManager, entryFactory, lockManager
componentRegistry, defaultSynchronous, rpcManager
cacheConfiguration
Constructor and Description |
---|
BiasedScatteredDistributionInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected void |
completeManyWriteOnPrimaryOriginator(WriteCommand command,
Address backup,
org.infinispan.interceptors.distribution.CountDownCompletableFuture future)
This is a hook for bias-enabled mode where the primary performs additional RPCs but replication to another node.
|
protected CompletionStage<?> |
completeSingleWriteOnPrimaryOriginator(DataWriteCommand command,
Address backup,
CompletionStage<?> rpcFuture)
This is a hook for bias-enabled mode where the primary performs additional RPCs but replication to another node.
|
protected <C extends WriteCommand> |
createMultiTargetCollector(C command,
int primaries) |
protected Object |
handleClear(InvocationContext ctx,
ClearCommand command,
Object ignored) |
void |
inject(CommandAckCollector collector,
BiasManager biasManager) |
protected CompletionStage<ValidResponse> |
manyWriteOnRemotePrimary(Address target,
WriteCommand command,
CommandAckCollector.MultiTargetCollector multiTargetCollector) |
protected Object |
manyWriteResponse(InvocationContext ctx,
WriteCommand cmd,
Object returnValue) |
protected CompletionStage<ValidResponse> |
singleWriteOnRemotePrimary(Address target,
DataWriteCommand command)
This method is called by a non-owner sending write request to the primary owner
|
protected Object |
singleWriteResponse(InvocationContext ctx,
DataWriteCommand cmd,
Object returnValue)
This method is called by primary owner responding to the originator after write has been completed
|
getLog, scheduleKeyInvalidation, start, visitClearCommand, visitComputeCommand, visitComputeIfAbsentCommand, visitEvictCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeysInGroupCommand, visitGetKeyValueCommand, visitPutKeyValueCommand, visitPutMapCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitRemoveCommand, visitReplaceCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommand
getSuccessfulResponseOrFail, unexpected
init, isLocalModeForced, isSynchronous, shouldInvokeRemoteTxCommand, transactionRemotelyPrepared
handleDefault, visitCommand, visitCommitCommand, visitEntrySetCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitRollbackCommand, 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
public BiasedScatteredDistributionInterceptor()
public void inject(CommandAckCollector collector, BiasManager biasManager)
protected CompletionStage<ValidResponse> singleWriteOnRemotePrimary(Address target, DataWriteCommand command)
ScatteredDistributionInterceptor
singleWriteOnRemotePrimary
in class ScatteredDistributionInterceptor
protected CompletionStage<ValidResponse> manyWriteOnRemotePrimary(Address target, WriteCommand command, CommandAckCollector.MultiTargetCollector multiTargetCollector)
manyWriteOnRemotePrimary
in class ScatteredDistributionInterceptor
protected <C extends WriteCommand> CommandAckCollector.MultiTargetCollector createMultiTargetCollector(C command, int primaries)
createMultiTargetCollector
in class ScatteredDistributionInterceptor
protected CompletionStage<?> completeSingleWriteOnPrimaryOriginator(DataWriteCommand command, Address backup, CompletionStage<?> rpcFuture)
ScatteredDistributionInterceptor
rpcFuture
completes and all additional RPCs
are complete, too. Failure in any of the RPCs will fail this future.completeSingleWriteOnPrimaryOriginator
in class ScatteredDistributionInterceptor
protected void completeManyWriteOnPrimaryOriginator(WriteCommand command, Address backup, org.infinispan.interceptors.distribution.CountDownCompletableFuture future)
ScatteredDistributionInterceptor
future
on each additional RPC and decrement
it when the response arrives.completeManyWriteOnPrimaryOriginator
in class ScatteredDistributionInterceptor
protected Object singleWriteResponse(InvocationContext ctx, DataWriteCommand cmd, Object returnValue)
ScatteredDistributionInterceptor
singleWriteResponse
in class ScatteredDistributionInterceptor
protected Object manyWriteResponse(InvocationContext ctx, WriteCommand cmd, Object returnValue)
manyWriteResponse
in class ScatteredDistributionInterceptor
protected Object handleClear(InvocationContext ctx, ClearCommand command, Object ignored)
handleClear
in class ScatteredDistributionInterceptor
Copyright © 2021 JBoss by Red Hat. All rights reserved.