|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.commands.AbstractVisitor
org.jboss.cache.interceptors.base.CommandInterceptor
org.jboss.cache.interceptors.base.PrePostProcessingCommandInterceptor
org.jboss.cache.interceptors.PessimisticLockInterceptor
@Deprecated public class PessimisticLockInterceptor
An interceptor that handles locking. When a TX is associated, we register for TX completion and unlock the locks acquired within the scope of the TX. When no TX is present, we keep track of the locks acquired during the current method and unlock when the method returns.
Field Summary |
---|
Fields inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
---|
configuration, log, trace |
Constructor Summary | |
---|---|
PessimisticLockInterceptor()
Deprecated. |
Method Summary | |
---|---|
void |
doAfterCall(InvocationContext ctx,
VisitableCommand command)
Deprecated. Callback that is invoked after every handleXXX() method defined above. |
protected java.lang.Object |
handleClearDataCommand(InvocationContext ctx,
ClearDataCommand command)
Deprecated. |
protected java.lang.Object |
handleCommitCommand(InvocationContext ctx,
CommitCommand command)
Deprecated. |
protected java.lang.Object |
handleEvictFqnCommand(InvocationContext ctx,
EvictCommand command)
Deprecated. |
protected java.lang.Object |
handleGetChildrenNamesCommand(InvocationContext ctx,
GetChildrenNamesCommand command)
Deprecated. |
protected java.lang.Object |
handleGetKeysCommand(InvocationContext ctx,
GetKeysCommand command)
Deprecated. |
protected java.lang.Object |
handleGetKeyValueCommand(InvocationContext ctx,
GetKeyValueCommand command)
Deprecated. |
protected java.lang.Object |
handleGetNodeCommand(InvocationContext ctx,
GetNodeCommand command)
Deprecated. |
protected java.lang.Object |
handleMoveCommand(InvocationContext ctx,
MoveCommand command)
Deprecated. |
protected java.lang.Object |
handlePrepareCommand(InvocationContext ctx,
PrepareCommand command)
Deprecated. |
protected java.lang.Object |
handlePutDataMapCommand(InvocationContext ctx,
PutDataMapCommand command)
Deprecated. |
protected java.lang.Object |
handlePutForExternalReadCommand(InvocationContext ctx,
PutForExternalReadCommand command)
Deprecated. |
protected java.lang.Object |
handlePutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
Deprecated. |
protected java.lang.Object |
handleRemoveKeyCommand(InvocationContext ctx,
RemoveKeyCommand command)
Deprecated. |
protected java.lang.Object |
handleRemoveNodeCommand(InvocationContext ctx,
RemoveNodeCommand command)
Deprecated. |
protected java.lang.Object |
handleRollbackCommand(InvocationContext ctx,
RollbackCommand command)
Deprecated. |
void |
injectDependencies(DataContainer dataContainer,
LockManager lockManager,
CommandsFactory commandsFactory)
Deprecated. |
void |
lockAllForRemoval(NodeSPI node,
InvocationContext ctx,
TransactionContext transactionContext)
Deprecated. Acquires write locks on the node and all child nodes, adding children to the list of removed nodes in the context. |
Methods inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
---|
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext |
Methods inherited from class org.jboss.cache.commands.AbstractVisitor |
---|
visitCollection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PessimisticLockInterceptor()
Method Detail |
---|
public void injectDependencies(DataContainer dataContainer, LockManager lockManager, CommandsFactory commandsFactory)
protected java.lang.Object handlePutDataMapCommand(InvocationContext ctx, PutDataMapCommand command) throws java.lang.Throwable
handlePutDataMapCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
protected java.lang.Object handlePutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws java.lang.Throwable
handlePutKeyValueCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
protected java.lang.Object handlePutForExternalReadCommand(InvocationContext ctx, PutForExternalReadCommand command) throws java.lang.Throwable
handlePutForExternalReadCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
protected java.lang.Object handlePrepareCommand(InvocationContext ctx, PrepareCommand command) throws java.lang.Throwable
handlePrepareCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
protected java.lang.Object handleCommitCommand(InvocationContext ctx, CommitCommand command) throws java.lang.Throwable
handleCommitCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
protected java.lang.Object handleRollbackCommand(InvocationContext ctx, RollbackCommand command) throws java.lang.Throwable
handleRollbackCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
protected java.lang.Object handleMoveCommand(InvocationContext ctx, MoveCommand command) throws java.lang.Throwable
handleMoveCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
protected java.lang.Object handleRemoveNodeCommand(InvocationContext ctx, RemoveNodeCommand command) throws java.lang.Throwable
handleRemoveNodeCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
public void lockAllForRemoval(NodeSPI node, InvocationContext ctx, TransactionContext transactionContext) throws java.lang.InterruptedException
node
- node to inspectctx
- invocation contexttransactionContext
- transaction entry
java.lang.InterruptedException
- in the event of interruptionprotected java.lang.Object handleRemoveKeyCommand(InvocationContext ctx, RemoveKeyCommand command) throws java.lang.Throwable
handleRemoveKeyCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
protected java.lang.Object handleClearDataCommand(InvocationContext ctx, ClearDataCommand command) throws java.lang.Throwable
handleClearDataCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
protected java.lang.Object handleEvictFqnCommand(InvocationContext ctx, EvictCommand command) throws java.lang.Throwable
handleEvictFqnCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
protected java.lang.Object handleGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws java.lang.Throwable
handleGetKeyValueCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
protected java.lang.Object handleGetNodeCommand(InvocationContext ctx, GetNodeCommand command) throws java.lang.Throwable
handleGetNodeCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
protected java.lang.Object handleGetKeysCommand(InvocationContext ctx, GetKeysCommand command) throws java.lang.Throwable
handleGetKeysCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
protected java.lang.Object handleGetChildrenNamesCommand(InvocationContext ctx, GetChildrenNamesCommand command) throws java.lang.Throwable
handleGetChildrenNamesCommand
in class PrePostProcessingCommandInterceptor
java.lang.Throwable
public void doAfterCall(InvocationContext ctx, VisitableCommand command)
PrePostProcessingCommandInterceptor
doAfterCall
in class PrePostProcessingCommandInterceptor
ctx
- invocation contextcommand
- command which was invoked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |