public abstract class PrePostProcessingCommandInterceptor extends CommandInterceptor
PrePostProcessingCommandInterceptor.doBeforeCall(InvocationContext,
VisitableCommand) and if this method returns true, it will proceed to invoking a handleXXX() method and
lastly, PrePostProcessingCommandInterceptor.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 PrePostProcessingCommandInterceptor.doAfterCall(InvocationContext ,VisitableCommand)
method and optionally PrePostProcessingCommandInterceptor.doBeforeCall(InvocationContext, VisitableCommand).
cacheConfiguration| Constructor and Description |
|---|
PrePostProcessingCommandInterceptor() |
getLockAcquisitionTimeout, getLog, getNext, handleDefault, hasNext, hasSkipLocking, injectConfiguration, invokeNextInterceptor, setNextpublic Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command)
visitPutKeyValueCommand in class AbstractVisitorprotected Object handlePutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command)
public Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command)
visitRemoveCommand in class AbstractVisitorprotected Object handleRemoveCommand(InvocationContext ctx, RemoveCommand command)
public Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command)
visitReplaceCommand in class AbstractVisitorprotected Object handleReplaceCommand(InvocationContext ctx, ReplaceCommand command)
public Object visitClearCommand(InvocationContext ctx, ClearCommand command)
visitClearCommand in class AbstractVisitorprotected Object handleClearCommand(InvocationContext ctx, ClearCommand command)
public Object visitPutMapCommand(InvocationContext ctx, PutMapCommand command)
visitPutMapCommand in class AbstractVisitorprotected Object handlePutMapCommand(InvocationContext ctx, PutMapCommand command)
public Object visitEvictCommand(InvocationContext ctx, EvictCommand command)
visitEvictCommand in class AbstractVisitorprotected Object handleEvictCommand(InvocationContext ctx, EvictCommand command)
public Object visitSizeCommand(InvocationContext ctx, SizeCommand command)
visitSizeCommand in class AbstractVisitorprotected Object handleSizeCommand(InvocationContext ctx, SizeCommand command)
public Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command)
visitGetKeyValueCommand in class AbstractVisitorprotected Object handleGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command)
public Object visitPrepareCommand(TxInvocationContext ctx, PrepareCommand command)
visitPrepareCommand in class AbstractVisitorprotected Object handlePrepareCommand(InvocationContext ctx, PrepareCommand command)
public Object visitRollbackCommand(TxInvocationContext ctx, RollbackCommand command)
visitRollbackCommand in class AbstractVisitorprotected Object handleRollbackCommand(InvocationContext ctx, RollbackCommand command)
public Object visitCommitCommand(TxInvocationContext ctx, CommitCommand command)
visitCommitCommand in class AbstractVisitorprotected Object handleCommitCommand(InvocationContext ctx, CommitCommand command)
protected abstract void doAfterCall(InvocationContext ctx, VisitableCommand command)
ctx - invocation contextcommand - command which was invokedprotected boolean doBeforeCall(InvocationContext ctx, VisitableCommand command)
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.