Package org.infinispan.interceptors.impl
Class PessimisticTxIracRemoteSiteInterceptor
- java.lang.Object
-
- org.infinispan.interceptors.BaseAsyncInterceptor
-
- org.infinispan.interceptors.DDAsyncInterceptor
-
- org.infinispan.interceptors.impl.AbstractIracLocalSiteInterceptor
-
- org.infinispan.interceptors.impl.AbstractIracRemoteSiteInterceptor
-
- org.infinispan.interceptors.impl.PessimisticTxIracRemoteSiteInterceptor
-
- All Implemented Interfaces:
Visitor,AsyncInterceptor
public class PessimisticTxIracRemoteSiteInterceptor extends AbstractIracRemoteSiteInterceptor
Interceptor for pessimsitic transactional caches to handle updates from remote sites.Since the pessimistic transactions commits in one phase and the version need to be validated after the lock is acquired, the other site update must be "replayed" in the primary owner.
- Since:
- 11.0
- Author:
- Pedro Ruivo
-
-
Field Summary
-
Fields inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
cacheConfiguration
-
-
Constructor Summary
Constructors Constructor Description PessimisticTxIracRemoteSiteInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectvisitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command)ObjectvisitRemoveCommand(InvocationContext ctx, RemoveCommand command)-
Methods inherited from class org.infinispan.interceptors.impl.AbstractIracRemoteSiteInterceptor
setIracMetadataForOwner, validateOnPrimary
-
Methods inherited from class org.infinispan.interceptors.impl.AbstractIracLocalSiteInterceptor
getCacheTopology, getDistributionInfo, getDistributionInfo, getOwnership, getOwnership, getSegment, isIracState, isNormalWriteCommand, isPrimaryOwner, isWriteOwner, setIracMetadata, setMetadataToCacheEntry, streamKeysFromCommand, streamKeysFromModifications, streamKeysFromModifications
-
Methods inherited from class org.infinispan.interceptors.DDAsyncInterceptor
handleDefault, visitClearCommand, visitCommand, visitCommitCommand, visitComputeCommand, visitComputeIfAbsentCommand, visitEntrySetCommand, visitEvictCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeysInGroupCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitPutMapCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitReplaceCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommand
-
Methods inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
asyncInvokeNext, asyncInvokeNext, asyncInvokeNext, asyncValue, delayedNull, delayedValue, delayedValue, invokeNext, invokeNextAndExceptionally, invokeNextAndFinally, invokeNextAndHandle, invokeNextThenAccept, invokeNextThenApply, isSuccessfullyDone, makeStage, setNextInterceptor, valueOrException
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.commands.Visitor
visitRemoveExpiredCommand
-
-
-
-
Method Detail
-
visitPutKeyValueCommand
public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command)
- Specified by:
visitPutKeyValueCommandin interfaceVisitor- Overrides:
visitPutKeyValueCommandin classDDAsyncInterceptor
-
visitRemoveCommand
public Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command)
- Specified by:
visitRemoveCommandin interfaceVisitor- Overrides:
visitRemoveCommandin classDDAsyncInterceptor
-
-