AsyncInterceptor
instead.@Deprecated public abstract class PrePostProcessingCommandInterceptor extends CommandInterceptor
doBeforeCall(InvocationContext,
VisitableCommand)
and if this method returns true, it will proceed to invoking a handleXXX() method and
lastly, doAfterCall(InvocationContext, VisitableCommand)
in a finally block. Note that the
doAfterCall() method is still invoked even if doBeforeCall() returns false.
Instead of overriding visitXXX() methods, implementations should override their handleXXX()
counterparts defined in this class instead, as well as the doAfterCall(InvocationContext ,VisitableCommand)
method and optionally doBeforeCall(InvocationContext, VisitableCommand)
.
cacheConfiguration
Constructor and Description |
---|
PrePostProcessingCommandInterceptor()
Deprecated.
|
getCacheWithFlags, getLockAcquisitionTimeout, getLog, getNext, handleDefault, hasNext, hasSkipLocking, injectConfiguration, invokeNextInterceptor, setNext, setNextInterceptor, visitCommand
visitApplyDeltaCommand, visitCollection, visitDistributedExecuteCommand, visitEntrySetCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeysInGroupCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitUnknownCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommand
public PrePostProcessingCommandInterceptor()
public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
visitPutKeyValueCommand
in interface Visitor
visitPutKeyValueCommand
in class AbstractVisitor
Throwable
protected Object handlePutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
Throwable
public Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable
visitRemoveCommand
in interface Visitor
visitRemoveCommand
in class AbstractVisitor
Throwable
protected Object handleRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable
Throwable
public Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable
visitReplaceCommand
in interface Visitor
visitReplaceCommand
in class AbstractVisitor
Throwable
protected Object handleReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable
Throwable
public Object visitClearCommand(InvocationContext ctx, ClearCommand command) throws Throwable
visitClearCommand
in interface Visitor
visitClearCommand
in class AbstractVisitor
Throwable
protected Object handleClearCommand(InvocationContext ctx, ClearCommand command) throws Throwable
Throwable
public Object visitPutMapCommand(InvocationContext ctx, PutMapCommand command) throws Throwable
visitPutMapCommand
in interface Visitor
visitPutMapCommand
in class AbstractVisitor
Throwable
protected Object handlePutMapCommand(InvocationContext ctx, PutMapCommand command) throws Throwable
Throwable
public Object visitEvictCommand(InvocationContext ctx, EvictCommand command) throws Throwable
visitEvictCommand
in interface Visitor
visitEvictCommand
in class AbstractVisitor
Throwable
protected Object handleEvictCommand(InvocationContext ctx, EvictCommand command) throws Throwable
Throwable
public Object visitSizeCommand(InvocationContext ctx, SizeCommand command) throws Throwable
visitSizeCommand
in interface Visitor
visitSizeCommand
in class AbstractVisitor
Throwable
protected Object handleSizeCommand(InvocationContext ctx, SizeCommand command) throws Throwable
Throwable
public Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
visitGetKeyValueCommand
in interface Visitor
visitGetKeyValueCommand
in class AbstractVisitor
Throwable
protected Object handleGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
Throwable
public Object visitPrepareCommand(TxInvocationContext ctx, PrepareCommand command) throws Throwable
visitPrepareCommand
in interface Visitor
visitPrepareCommand
in class AbstractVisitor
Throwable
protected Object handlePrepareCommand(InvocationContext ctx, PrepareCommand command) throws Throwable
Throwable
public Object visitRollbackCommand(TxInvocationContext ctx, RollbackCommand command) throws Throwable
visitRollbackCommand
in interface Visitor
visitRollbackCommand
in class AbstractVisitor
Throwable
protected Object handleRollbackCommand(InvocationContext ctx, RollbackCommand command) throws Throwable
Throwable
public Object visitCommitCommand(TxInvocationContext ctx, CommitCommand command) throws Throwable
visitCommitCommand
in interface Visitor
visitCommitCommand
in class AbstractVisitor
Throwable
protected Object handleCommitCommand(InvocationContext ctx, CommitCommand command) throws Throwable
Throwable
protected abstract void doAfterCall(InvocationContext ctx, VisitableCommand command)
ctx
- invocation contextcommand
- command which was invokedprotected boolean doBeforeCall(InvocationContext ctx, VisitableCommand command)
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.