Class ClusteringInterceptor
java.lang.Object
org.infinispan.interceptors.BaseAsyncInterceptor
org.infinispan.interceptors.DDAsyncInterceptor
org.infinispan.interceptors.impl.BaseRpcInterceptor
org.infinispan.interceptors.impl.ClusteringInterceptor
- All Implemented Interfaces:
Visitor, AsyncInterceptor
- Direct Known Subclasses:
BaseDistributionInterceptor
Base class for distribution interceptors.
- Since:
- 9.0
- Author:
- anistor@redhat.com
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classClusteringInterceptor.ClusteredGetAllFuture.completeExceptionally(Throwable)must be called from synchronized block since we must not complete the future (exceptionally) when we're accessing the context - if there was an exception and we would retry, the context could be accessed concurrently by dangling handlers and retry execution (that does not synchronize on the same future). -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandsFactoryprotected InternalDataContainerprotected DistributionManagerprotected EntryFactoryprotected LockManagerFields inherited from class BaseRpcInterceptor
componentRegistry, defaultSynchronous, rpcManagerFields inherited from class BaseAsyncInterceptor
cacheConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalizedCacheTopologyprotected static SuccessfulResponsegetSuccessfulResponseOrFail(Map<Address, Response> responseMap, CompletableFuture<?> future, Consumer<Response> cacheNotFound) voidinit()protected static RuntimeExceptionunexpected(Address sender, Response response) visitSizeCommand(InvocationContext ctx, SizeCommand command) visitTouchCommand(InvocationContext ctx, TouchCommand command) Methods inherited from class BaseRpcInterceptor
getLog, isLocalModeForced, isSynchronous, shouldInvokeRemoteTxCommand, shouldLoad, transactionRemotelyPreparedMethods inherited from class DDAsyncInterceptor
handleDefault, visitClearCommand, visitCommand, visitCommitCommand, visitComputeCommand, visitComputeIfAbsentCommand, visitEntrySetCommand, visitEvictCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitIracPutKeyValueCommand, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitPutKeyValueCommand, visitPutMapCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitRemoveCommand, visitReplaceCommand, visitRollbackCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommandMethods inherited from class BaseAsyncInterceptor
asyncInvokeNext, asyncInvokeNext, asyncInvokeNext, asyncValue, delayedNull, delayedValue, delayedValue, invokeNext, invokeNextAndExceptionally, invokeNextAndFinally, invokeNextAndHandle, invokeNextThenAccept, invokeNextThenApply, isSuccessfullyDone, makeStage, setNextInterceptor, valueOrExceptionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Visitor
visitRemoveExpiredCommand
-
Field Details
-
cf
-
entryFactory
-
lockManager
-
dataContainer
-
distributionManager
-
-
Constructor Details
-
ClusteringInterceptor
public ClusteringInterceptor()
-
-
Method Details
-
init
public void init()- Overrides:
initin classBaseRpcInterceptor
-
getCacheTopology
-
visitSizeCommand
- Specified by:
visitSizeCommandin interfaceVisitor- Overrides:
visitSizeCommandin classDDAsyncInterceptor- Throws:
Throwable
-
visitTouchCommand
- Specified by:
visitTouchCommandin interfaceVisitor- Overrides:
visitTouchCommandin classDDAsyncInterceptor- Throws:
Throwable
-
getSuccessfulResponseOrFail
protected static SuccessfulResponse getSuccessfulResponseOrFail(Map<Address, Response> responseMap, CompletableFuture<?> future, Consumer<Response> cacheNotFound) -
unexpected
-