Class BiasedScatteredDistributionInterceptor
java.lang.Object
org.infinispan.interceptors.BaseAsyncInterceptor
org.infinispan.interceptors.DDAsyncInterceptor
org.infinispan.interceptors.impl.BaseRpcInterceptor
org.infinispan.interceptors.impl.ClusteringInterceptor
org.infinispan.interceptors.distribution.ScatteredDistributionInterceptor
org.infinispan.interceptors.distribution.BiasedScatteredDistributionInterceptor
- All Implemented Interfaces:
Visitor,AsyncInterceptor
-
Nested Class Summary
Nested classes/interfaces inherited from class org.infinispan.interceptors.distribution.ScatteredDistributionInterceptor
ScatteredDistributionInterceptor.PrimaryResponseGenerator, ScatteredDistributionInterceptor.PrimaryResponseHandlerNested classes/interfaces inherited from class org.infinispan.interceptors.impl.ClusteringInterceptor
ClusteringInterceptor.ClusteredGetAllFuture -
Field Summary
Fields inherited from class org.infinispan.interceptors.distribution.ScatteredDistributionInterceptor
cacheNotifier, functionalNotifier, groupManager, keyPartitioner, svm, timeServiceFields inherited from class org.infinispan.interceptors.impl.ClusteringInterceptor
cf, dataContainer, distributionManager, entryFactory, lockManagerFields inherited from class org.infinispan.interceptors.impl.BaseRpcInterceptor
componentRegistry, defaultSynchronous, rpcManagerFields inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
cacheConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompleteManyWriteOnPrimaryOriginator(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>
CommandAckCollector.MultiTargetCollectorcreateMultiTargetCollector(C command, int primaries) protected ObjecthandleClear(InvocationContext ctx, ClearCommand command, Object ignored) voidinject(CommandAckCollector collector, BiasManager biasManager) protected CompletionStage<ValidResponse>manyWriteOnRemotePrimary(Address target, WriteCommand command, CommandAckCollector.MultiTargetCollector multiTargetCollector) protected ObjectmanyWriteResponse(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 ownerprotected ObjectsingleWriteResponse(InvocationContext ctx, DataWriteCommand cmd, Object returnValue) This method is called by primary owner responding to the originator after write has been completedMethods inherited from class org.infinispan.interceptors.distribution.ScatteredDistributionInterceptor
getLog, scheduleKeyInvalidation, start, visitClearCommand, visitComputeCommand, visitComputeIfAbsentCommand, visitEvictCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeyValueCommand, visitIracPutKeyValueCommand, visitPutKeyValueCommand, visitPutMapCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitRemoveCommand, visitReplaceCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommandMethods inherited from class org.infinispan.interceptors.impl.ClusteringInterceptor
getCacheTopology, getSuccessfulResponseOrFail, init, unexpected, visitSizeCommand, visitTouchCommandMethods inherited from class org.infinispan.interceptors.impl.BaseRpcInterceptor
isLocalModeForced, isSynchronous, shouldInvokeRemoteTxCommand, shouldLoad, transactionRemotelyPreparedMethods inherited from class org.infinispan.interceptors.DDAsyncInterceptor
handleDefault, visitCommand, visitCommitCommand, visitEntrySetCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitRollbackCommand, visitUnknownCommandMethods inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
asyncInvokeNext, asyncInvokeNext, asyncInvokeNext, asyncValue, delayedNull, delayedValue, delayedValue, invokeNext, invokeNextAndExceptionally, invokeNextAndFinally, invokeNextAndHandle, invokeNextThenAccept, invokeNextThenApply, isSuccessfullyDone, makeStage, setNextInterceptor, valueOrExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commands.Visitor
visitRemoveExpiredCommand
-
Constructor Details
-
BiasedScatteredDistributionInterceptor
public BiasedScatteredDistributionInterceptor()
-
-
Method Details
-
inject
-
singleWriteOnRemotePrimary
protected CompletionStage<ValidResponse> singleWriteOnRemotePrimary(Address target, DataWriteCommand command) Description copied from class:ScatteredDistributionInterceptorThis method is called by a non-owner sending write request to the primary owner- Overrides:
singleWriteOnRemotePrimaryin classScatteredDistributionInterceptor
-
manyWriteOnRemotePrimary
protected CompletionStage<ValidResponse> manyWriteOnRemotePrimary(Address target, WriteCommand command, CommandAckCollector.MultiTargetCollector multiTargetCollector) - Overrides:
manyWriteOnRemotePrimaryin classScatteredDistributionInterceptor
-
createMultiTargetCollector
protected <C extends WriteCommand> CommandAckCollector.MultiTargetCollector createMultiTargetCollector(C command, int primaries) - Overrides:
createMultiTargetCollectorin classScatteredDistributionInterceptor
-
completeSingleWriteOnPrimaryOriginator
protected CompletionStage<?> completeSingleWriteOnPrimaryOriginator(DataWriteCommand command, Address backup, CompletionStage<?> rpcFuture) Description copied from class:ScatteredDistributionInterceptorThis is a hook for bias-enabled mode where the primary performs additional RPCs but replication to another node. The returned CF will be complete when both the providedrpcFuturecompletes and all additional RPCs are complete, too. Failure in any of the RPCs will fail this future.- Overrides:
completeSingleWriteOnPrimaryOriginatorin classScatteredDistributionInterceptor
-
completeManyWriteOnPrimaryOriginator
protected void completeManyWriteOnPrimaryOriginator(WriteCommand command, Address backup, org.infinispan.interceptors.distribution.CountDownCompletableFuture future) Description copied from class:ScatteredDistributionInterceptorThis is a hook for bias-enabled mode where the primary performs additional RPCs but replication to another node. Implementation is expected to incrementfutureon each additional RPC and decrement it when the response arrives.- Overrides:
completeManyWriteOnPrimaryOriginatorin classScatteredDistributionInterceptor
-
singleWriteResponse
protected Object singleWriteResponse(InvocationContext ctx, DataWriteCommand cmd, Object returnValue) Description copied from class:ScatteredDistributionInterceptorThis method is called by primary owner responding to the originator after write has been completed- Overrides:
singleWriteResponsein classScatteredDistributionInterceptor
-
manyWriteResponse
- Overrides:
manyWriteResponsein classScatteredDistributionInterceptor
-
handleClear
- Overrides:
handleClearin classScatteredDistributionInterceptor
-