public abstract class AbstractLockingInterceptor extends CommandInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected ClusteringDependentLogic |
cdl |
protected DataContainer |
dataContainer |
protected EntryFactory |
entryFactory |
protected LockManager |
lockManager |
cacheConfiguration| Constructor and Description |
|---|
AbstractLockingInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected Throwable |
cleanLocksAndRethrow(InvocationContext ctx,
Throwable te) |
protected void |
lockKey(InvocationContext ctx,
DataWriteCommand command) |
protected void |
lockKey(InvocationContext ctx,
Object key,
long timeoutMillis,
boolean skipLocking) |
void |
setDependencies(LockManager lockManager,
DataContainer dataContainer,
EntryFactory entryFactory,
ClusteringDependentLogic cdl) |
protected boolean |
shouldLock(Object key,
FlagAffectedCommand command) |
Object |
visitInvalidateCommand(InvocationContext ctx,
InvalidateCommand command) |
Object |
visitInvalidateL1Command(InvocationContext ctx,
InvalidateL1Command command) |
Object |
visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command) |
getLockAcquisitionTimeout, getLog, getNext, handleDefault, hasNext, hasSkipLocking, injectConfiguration, invokeNextInterceptor, setNextvisitApplyDeltaCommand, visitClearCommand, visitCollection, visitCommitCommand, visitDistributedExecuteCommand, visitEntrySetCommand, visitEvictCommand, visitGetKeyValueCommand, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitPutMapCommand, visitRemoveCommand, visitReplaceCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitValuesCommandprotected LockManager lockManager
protected DataContainer dataContainer
protected EntryFactory entryFactory
protected ClusteringDependentLogic cdl
public void setDependencies(LockManager lockManager, DataContainer dataContainer, EntryFactory entryFactory, ClusteringDependentLogic cdl)
public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
visitPutKeyValueCommand in interface VisitorvisitPutKeyValueCommand in class AbstractVisitorThrowablepublic final Object visitInvalidateCommand(InvocationContext ctx, InvalidateCommand command) throws Throwable
visitInvalidateCommand in interface VisitorvisitInvalidateCommand in class AbstractVisitorThrowablepublic final Object visitInvalidateL1Command(InvocationContext ctx, InvalidateL1Command command) throws Throwable
visitInvalidateL1Command in interface VisitorvisitInvalidateL1Command in class AbstractVisitorThrowableprotected final Throwable cleanLocksAndRethrow(InvocationContext ctx, Throwable te)
protected final boolean shouldLock(Object key, FlagAffectedCommand command)
protected final void lockKey(InvocationContext ctx, DataWriteCommand command) throws InterruptedException
InterruptedExceptionprotected final void lockKey(InvocationContext ctx, Object key, long timeoutMillis, boolean skipLocking) throws InterruptedException
InterruptedExceptionCopyright © 2013 JBoss, a division of Red Hat. All rights reserved.