Class OptimisticLockingInterceptor
- java.lang.Object
-
- org.infinispan.interceptors.BaseAsyncInterceptor
-
- org.infinispan.interceptors.DDAsyncInterceptor
-
- org.infinispan.interceptors.locking.AbstractLockingInterceptor
-
- org.infinispan.interceptors.locking.AbstractTxLockingInterceptor
-
- org.infinispan.interceptors.locking.OptimisticLockingInterceptor
-
- All Implemented Interfaces:
Visitor
,AsyncInterceptor
public class OptimisticLockingInterceptor extends AbstractTxLockingInterceptor
Locking interceptor to be used by optimistic transactional caches.- Author:
- Mircea Markus
-
-
Field Summary
-
Fields inherited from class org.infinispan.interceptors.locking.AbstractLockingInterceptor
cdl, invalidationMode, lockManager
-
Fields inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
cacheConfiguration
-
-
Constructor Summary
Constructors Constructor Description OptimisticLockingInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Log
getLog()
protected Object
handleReadManyCommand(InvocationContext ctx, FlagAffectedCommand command, Collection<?> keys)
protected <K> Object
handleWriteManyCommand(InvocationContext ctx, org.infinispan.commands.write.WriteCommand command, Collection<K> keys, boolean forwarded)
protected Object
visitDataReadCommand(InvocationContext ctx, DataCommand command)
protected Object
visitDataWriteCommand(InvocationContext ctx, org.infinispan.commands.write.DataWriteCommand command)
Object
visitLockControlCommand(TxInvocationContext ctx, org.infinispan.commands.control.LockControlCommand command)
Object
visitPrepareCommand(TxInvocationContext ctx, org.infinispan.commands.tx.PrepareCommand command)
-
Methods inherited from class org.infinispan.interceptors.locking.AbstractTxLockingInterceptor
visitCommitCommand, visitRollbackCommand
-
Methods inherited from class org.infinispan.interceptors.locking.AbstractLockingInterceptor
getLockTimeoutMillis, lockAndRecord, start, visitClearCommand, visitComputeCommand, visitComputeIfAbsentCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitPutKeyValueCommand, visitPutMapCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitRemoveCommand, visitReplaceCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommand
-
Methods inherited from class org.infinispan.interceptors.DDAsyncInterceptor
handleDefault, visitCommand, visitDistributedExecuteCommand, visitEntrySetCommand, visitEvictCommand, visitGetKeysInGroupCommand, visitKeySetCommand, visitSizeCommand, visitUnknownCommand
-
Methods inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
asyncInvokeNext, asyncInvokeNext, asyncInvokeNext, asyncValue, 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
visitApplyDeltaCommand, visitRemoveExpiredCommand
-
-
-
-
Method Detail
-
getLog
protected Log getLog()
- Specified by:
getLog
in classAbstractLockingInterceptor
-
visitPrepareCommand
public Object visitPrepareCommand(TxInvocationContext ctx, org.infinispan.commands.tx.PrepareCommand command) throws Throwable
- Specified by:
visitPrepareCommand
in interfaceVisitor
- Overrides:
visitPrepareCommand
in classDDAsyncInterceptor
- Throws:
Throwable
-
visitDataReadCommand
protected Object visitDataReadCommand(InvocationContext ctx, DataCommand command) throws Throwable
- Specified by:
visitDataReadCommand
in classAbstractLockingInterceptor
- Throws:
Throwable
-
visitDataWriteCommand
protected Object visitDataWriteCommand(InvocationContext ctx, org.infinispan.commands.write.DataWriteCommand command) throws Throwable
- Specified by:
visitDataWriteCommand
in classAbstractLockingInterceptor
- Throws:
Throwable
-
handleReadManyCommand
protected Object handleReadManyCommand(InvocationContext ctx, FlagAffectedCommand command, Collection<?> keys)
- Overrides:
handleReadManyCommand
in classAbstractTxLockingInterceptor
-
handleWriteManyCommand
protected <K> Object handleWriteManyCommand(InvocationContext ctx, org.infinispan.commands.write.WriteCommand command, Collection<K> keys, boolean forwarded) throws Throwable
- Specified by:
handleWriteManyCommand
in classAbstractLockingInterceptor
- Throws:
Throwable
-
visitLockControlCommand
public Object visitLockControlCommand(TxInvocationContext ctx, org.infinispan.commands.control.LockControlCommand command) throws Throwable
- Specified by:
visitLockControlCommand
in interfaceVisitor
- Overrides:
visitLockControlCommand
in classDDAsyncInterceptor
- Throws:
Throwable
-
-