Package org.infinispan.interceptors.impl
Class OptimisticTxIracLocalSiteInterceptor
java.lang.Object
org.infinispan.interceptors.BaseAsyncInterceptor
org.infinispan.interceptors.DDAsyncInterceptor
org.infinispan.interceptors.impl.AbstractIracLocalSiteInterceptor
org.infinispan.interceptors.impl.OptimisticTxIracLocalSiteInterceptor
- All Implemented Interfaces:
Visitor
,AsyncInterceptor
,LogSupplier
Interceptor used by IRAC for optimistic transactional caches to handle the local site updates.
On prepare, if successful, the primary owners generate the IracMetadata
to commit and send it back to the
transaction originator. When committing, the IracMetadata
is set in the context entries to be stored.
- Since:
- 11.0
- Author:
- Pedro Ruivo
-
Field Summary
Fields inherited from class org.infinispan.interceptors.impl.AbstractIracLocalSiteInterceptor
log
Fields inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
cacheConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvisitCommitCommand
(TxInvocationContext ctx, CommitCommand command) visitPrepareCommand
(TxInvocationContext ctx, PrepareCommand command) visitPutKeyValueCommand
(InvocationContext ctx, PutKeyValueCommand command) visitRollbackCommand
(TxInvocationContext ctx, RollbackCommand command) Methods inherited from class org.infinispan.interceptors.impl.AbstractIracLocalSiteInterceptor
getCacheTopology, getDistributionInfo, getLog, getSegment, isIracState, isNormalWriteCommand, isPrimaryOwner, isTraceEnabled, isWriteOwner, setMetadataToCacheEntry, skipEntryCommit, streamKeysFromCommand, streamKeysFromModifications, visitNonTxDataWriteCommand, visitNonTxKey, visitRemoveExpiredCommand
Methods inherited from class org.infinispan.interceptors.DDAsyncInterceptor
handleDefault, visitClearCommand, visitCommand, visitComputeCommand, visitComputeIfAbsentCommand, visitEntrySetCommand, visitEvictCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitIracPutKeyValueCommand, visitKeySetCommand, visitLockControlCommand, visitPutMapCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitRemoveCommand, visitReplaceCommand, visitSizeCommand, visitTouchCommand, 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
-
Constructor Details
-
OptimisticTxIracLocalSiteInterceptor
public OptimisticTxIracLocalSiteInterceptor()
-
-
Method Details
-
visitPutKeyValueCommand
- Specified by:
visitPutKeyValueCommand
in interfaceVisitor
- Overrides:
visitPutKeyValueCommand
in classDDAsyncInterceptor
-
visitPrepareCommand
- Specified by:
visitPrepareCommand
in interfaceVisitor
- Overrides:
visitPrepareCommand
in classDDAsyncInterceptor
-
visitCommitCommand
- Specified by:
visitCommitCommand
in interfaceVisitor
- Overrides:
visitCommitCommand
in classDDAsyncInterceptor
-
visitRollbackCommand
- Specified by:
visitRollbackCommand
in interfaceVisitor
- Overrides:
visitRollbackCommand
in classDDAsyncInterceptor
-