@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, visitCommandvisitApplyDeltaCommand, visitCollection, visitDistributedExecuteCommand, visitEntrySetCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeysInGroupCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitUnknownCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommandpublic PrePostProcessingCommandInterceptor()
public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
visitPutKeyValueCommand in interface VisitorvisitPutKeyValueCommand in class AbstractVisitorThrowableprotected Object handlePutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
Throwablepublic Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable
visitRemoveCommand in interface VisitorvisitRemoveCommand in class AbstractVisitorThrowableprotected Object handleRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable
Throwablepublic Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable
visitReplaceCommand in interface VisitorvisitReplaceCommand in class AbstractVisitorThrowableprotected Object handleReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable
Throwablepublic Object visitClearCommand(InvocationContext ctx, ClearCommand command) throws Throwable
visitClearCommand in interface VisitorvisitClearCommand in class AbstractVisitorThrowableprotected Object handleClearCommand(InvocationContext ctx, ClearCommand command) throws Throwable
Throwablepublic Object visitPutMapCommand(InvocationContext ctx, PutMapCommand command) throws Throwable
visitPutMapCommand in interface VisitorvisitPutMapCommand in class AbstractVisitorThrowableprotected Object handlePutMapCommand(InvocationContext ctx, PutMapCommand command) throws Throwable
Throwablepublic Object visitEvictCommand(InvocationContext ctx, EvictCommand command) throws Throwable
visitEvictCommand in interface VisitorvisitEvictCommand in class AbstractVisitorThrowableprotected Object handleEvictCommand(InvocationContext ctx, EvictCommand command) throws Throwable
Throwablepublic Object visitSizeCommand(InvocationContext ctx, SizeCommand command) throws Throwable
visitSizeCommand in interface VisitorvisitSizeCommand in class AbstractVisitorThrowableprotected Object handleSizeCommand(InvocationContext ctx, SizeCommand command) throws Throwable
Throwablepublic Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
visitGetKeyValueCommand in interface VisitorvisitGetKeyValueCommand in class AbstractVisitorThrowableprotected Object handleGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
Throwablepublic Object visitPrepareCommand(TxInvocationContext ctx, PrepareCommand command) throws Throwable
visitPrepareCommand in interface VisitorvisitPrepareCommand in class AbstractVisitorThrowableprotected Object handlePrepareCommand(InvocationContext ctx, PrepareCommand command) throws Throwable
Throwablepublic Object visitRollbackCommand(TxInvocationContext ctx, RollbackCommand command) throws Throwable
visitRollbackCommand in interface VisitorvisitRollbackCommand in class AbstractVisitorThrowableprotected Object handleRollbackCommand(InvocationContext ctx, RollbackCommand command) throws Throwable
Throwablepublic Object visitCommitCommand(TxInvocationContext ctx, CommitCommand command) throws Throwable
visitCommitCommand in interface VisitorvisitCommitCommand in class AbstractVisitorThrowableprotected Object handleCommitCommand(InvocationContext ctx, CommitCommand command) throws Throwable
Throwableprotected abstract void doAfterCall(InvocationContext ctx, VisitableCommand command)
ctx - invocation contextcommand - command which was invokedprotected boolean doBeforeCall(InvocationContext ctx, VisitableCommand command)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.