public class BiasedScatteredDistributionInterceptor extends ScatteredDistributionInterceptor
ScatteredDistributionInterceptor.PrimaryResponseGenerator, ScatteredDistributionInterceptor.PrimaryResponseHandlerClusteringInterceptor.ClusteredGetAllFuturecacheNotifier, functionalNotifier, groupManager, keyPartitioner, svm, timeServicecf, dataContainer, distributionManager, entryFactory, lockManagercomponentRegistry, defaultSynchronous, rpcManagercacheConfiguration| 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, visitWriteOnlyManyEntriesCommandgetSuccessfulResponseOrFail, unexpectedinit, isLocalModeForced, isSynchronous, shouldInvokeRemoteTxCommand, transactionRemotelyPreparedhandleDefault, visitCommand, visitCommitCommand, visitEntrySetCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommandasyncInvokeNext, asyncInvokeNext, asyncInvokeNext, asyncValue, delayedNull, delayedValue, delayedValue, invokeNext, invokeNextAndExceptionally, invokeNextAndFinally, invokeNextAndHandle, invokeNextThenAccept, invokeNextThenApply, isSuccessfullyDone, makeStage, setNextInterceptor, valueOrExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitRemoveExpiredCommandpublic BiasedScatteredDistributionInterceptor()
public void inject(CommandAckCollector collector, BiasManager biasManager)
protected CompletionStage<ValidResponse> singleWriteOnRemotePrimary(Address target, DataWriteCommand command)
ScatteredDistributionInterceptorsingleWriteOnRemotePrimary in class ScatteredDistributionInterceptorprotected CompletionStage<ValidResponse> manyWriteOnRemotePrimary(Address target, WriteCommand command, CommandAckCollector.MultiTargetCollector multiTargetCollector)
manyWriteOnRemotePrimary in class ScatteredDistributionInterceptorprotected <C extends WriteCommand> CommandAckCollector.MultiTargetCollector createMultiTargetCollector(C command, int primaries)
createMultiTargetCollector in class ScatteredDistributionInterceptorprotected CompletionStage<?> completeSingleWriteOnPrimaryOriginator(DataWriteCommand command, Address backup, CompletionStage<?> rpcFuture)
ScatteredDistributionInterceptorrpcFuture completes and all additional RPCs
are complete, too. Failure in any of the RPCs will fail this future.completeSingleWriteOnPrimaryOriginator in class ScatteredDistributionInterceptorprotected void completeManyWriteOnPrimaryOriginator(WriteCommand command, Address backup, org.infinispan.interceptors.distribution.CountDownCompletableFuture future)
ScatteredDistributionInterceptorfuture on each additional RPC and decrement
it when the response arrives.completeManyWriteOnPrimaryOriginator in class ScatteredDistributionInterceptorprotected Object singleWriteResponse(InvocationContext ctx, DataWriteCommand cmd, Object returnValue)
ScatteredDistributionInterceptorsingleWriteResponse in class ScatteredDistributionInterceptorprotected Object manyWriteResponse(InvocationContext ctx, WriteCommand cmd, Object returnValue)
manyWriteResponse in class ScatteredDistributionInterceptorprotected Object handleClear(InvocationContext ctx, ClearCommand command, Object ignored)
handleClear in class ScatteredDistributionInterceptorCopyright © 2022 JBoss by Red Hat. All rights reserved.