Class TransactionalStoreInterceptor
java.lang.Object
org.infinispan.interceptors.BaseAsyncInterceptor
org.infinispan.interceptors.DDAsyncInterceptor
org.infinispan.interceptors.impl.TransactionalStoreInterceptor
- All Implemented Interfaces:
Visitor, AsyncInterceptor
An interceptor which ensures that writes to an underlying transactional store are prepared->committed/rolledback as part
of the 2PC, therefore ensuring that the cache and transactional store(s) remain consistent.
- Since:
- 9.0
- Author:
- Ryan Emerson
-
Field Summary
Fields inherited from class BaseAsyncInterceptor
cacheConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvisitCommitCommand(TxInvocationContext ctx, CommitCommand command) visitPrepareCommand(TxInvocationContext ctx, PrepareCommand command) visitRollbackCommand(TxInvocationContext ctx, RollbackCommand command) Methods inherited from class DDAsyncInterceptor
handleDefault, visitClearCommand, visitCommand, visitComputeCommand, visitComputeIfAbsentCommand, visitEntrySetCommand, visitEvictCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitIracPutKeyValueCommand, visitKeySetCommand, visitLockControlCommand, visitPutKeyValueCommand, visitPutMapCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitRemoveCommand, visitReplaceCommand, visitSizeCommand, visitTouchCommand, 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
-
Constructor Details
-
TransactionalStoreInterceptor
public TransactionalStoreInterceptor()
-
-
Method Details
-
visitPrepareCommand
- Specified by:
visitPrepareCommandin interfaceVisitor- Overrides:
visitPrepareCommandin classDDAsyncInterceptor
-
visitCommitCommand
- Specified by:
visitCommitCommandin interfaceVisitor- Overrides:
visitCommitCommandin classDDAsyncInterceptor
-
visitRollbackCommand
- Specified by:
visitRollbackCommandin interfaceVisitor- Overrides:
visitRollbackCommandin classDDAsyncInterceptor
-