public abstract class PrePostProcessingCommandInterceptor extends CommandInterceptor
doBeforeCall(org.jboss.cache.InvocationContext, org.jboss.cache.commands.VisitableCommand)
and if this method returns true, it will proceed to invoking a handleXXX() method and lastly, doAfterCall(org.jboss.cache.InvocationContext, org.jboss.cache.commands.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(org.jboss.cache.InvocationContext ,org.jboss.cache.commands.VisitableCommand) method and
optionally doBeforeCall(org.jboss.cache.InvocationContext, org.jboss.cache.commands.VisitableCommand).
configuration, log, trace| Constructor and Description |
|---|
PrePostProcessingCommandInterceptor() |
getNext, handleDefault, hasNext, invokeNextInterceptor, setNextvisitCollectionpublic final Object visitPutDataMapCommand(InvocationContext ctx, PutDataMapCommand command) throws Throwable
VisitorvisitPutDataMapCommand in interface VisitorvisitPutDataMapCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handlePutDataMapCommand(InvocationContext ctx, PutDataMapCommand command) throws Throwable
Throwablepublic final Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
VisitorvisitPutKeyValueCommand in interface VisitorvisitPutKeyValueCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.public final Object visitPutForExternalReadCommand(InvocationContext ctx, PutForExternalReadCommand command) throws Throwable
VisitorvisitPutForExternalReadCommand in interface VisitorvisitPutForExternalReadCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handlePutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
Throwableprotected Object handlePutForExternalReadCommand(InvocationContext ctx, PutForExternalReadCommand command) throws Throwable
Throwablepublic final Object visitRemoveNodeCommand(InvocationContext ctx, RemoveNodeCommand command) throws Throwable
VisitorvisitRemoveNodeCommand in interface VisitorvisitRemoveNodeCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleRemoveNodeCommand(InvocationContext ctx, RemoveNodeCommand command) throws Throwable
Throwablepublic final Object visitCreateNodeCommand(InvocationContext ctx, CreateNodeCommand command) throws Throwable
VisitorvisitCreateNodeCommand in interface VisitorvisitCreateNodeCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.@Deprecated protected Object handleCreateNodeCommand(InvocationContext ctx, CreateNodeCommand command) throws Throwable
Throwablepublic final Object visitClearDataCommand(InvocationContext ctx, ClearDataCommand command) throws Throwable
VisitorvisitClearDataCommand in interface VisitorvisitClearDataCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleClearDataCommand(InvocationContext ctx, ClearDataCommand command) throws Throwable
Throwablepublic final Object visitEvictFqnCommand(InvocationContext ctx, EvictCommand command) throws Throwable
VisitorvisitEvictFqnCommand in interface VisitorvisitEvictFqnCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleEvictFqnCommand(InvocationContext ctx, EvictCommand command) throws Throwable
Throwablepublic final Object visitInvalidateCommand(InvocationContext ctx, InvalidateCommand command) throws Throwable
VisitorvisitInvalidateCommand in interface VisitorvisitInvalidateCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleInvalidateCommand(InvocationContext ctx, InvalidateCommand command) throws Throwable
Throwablepublic final Object visitRemoveKeyCommand(InvocationContext ctx, RemoveKeyCommand command) throws Throwable
VisitorvisitRemoveKeyCommand in interface VisitorvisitRemoveKeyCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleRemoveKeyCommand(InvocationContext ctx, RemoveKeyCommand command) throws Throwable
Throwablepublic final Object visitGetDataMapCommand(InvocationContext ctx, GetDataMapCommand command) throws Throwable
VisitorvisitGetDataMapCommand in interface VisitorvisitGetDataMapCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleGetDataMapCommand(InvocationContext ctx, GetDataMapCommand command) throws Throwable
Throwablepublic final Object visitExistsNodeCommand(InvocationContext ctx, ExistsCommand command) throws Throwable
VisitorvisitExistsNodeCommand in interface VisitorvisitExistsNodeCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleExistsNodeCommand(InvocationContext ctx, ExistsCommand command) throws Throwable
Throwablepublic final Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
VisitorvisitGetKeyValueCommand in interface VisitorvisitGetKeyValueCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
Throwablepublic final Object visitGetNodeCommand(InvocationContext ctx, GetNodeCommand command) throws Throwable
VisitorvisitGetNodeCommand in interface VisitorvisitGetNodeCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleGetNodeCommand(InvocationContext ctx, GetNodeCommand command) throws Throwable
Throwablepublic final Object visitGetKeysCommand(InvocationContext ctx, GetKeysCommand command) throws Throwable
VisitorvisitGetKeysCommand in interface VisitorvisitGetKeysCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleGetKeysCommand(InvocationContext ctx, GetKeysCommand command) throws Throwable
Throwablepublic final Object visitGetChildrenNamesCommand(InvocationContext ctx, GetChildrenNamesCommand command) throws Throwable
VisitorvisitGetChildrenNamesCommand in interface VisitorvisitGetChildrenNamesCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleGetChildrenNamesCommand(InvocationContext ctx, GetChildrenNamesCommand command) throws Throwable
Throwablepublic final Object visitMoveCommand(InvocationContext ctx, MoveCommand command) throws Throwable
VisitorvisitMoveCommand in interface VisitorvisitMoveCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleMoveCommand(InvocationContext ctx, MoveCommand command) throws Throwable
Throwablepublic final Object visitGravitateDataCommand(InvocationContext ctx, GravitateDataCommand command) throws Throwable
VisitorvisitGravitateDataCommand in interface VisitorvisitGravitateDataCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleGravitateDataCommand(InvocationContext ctx, GravitateDataCommand command) throws Throwable
Throwablepublic final Object visitPrepareCommand(InvocationContext ctx, PrepareCommand command) throws Throwable
VisitorvisitPrepareCommand in interface VisitorvisitPrepareCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handlePrepareCommand(InvocationContext ctx, PrepareCommand command) throws Throwable
Throwablepublic final Object visitRollbackCommand(InvocationContext ctx, RollbackCommand command) throws Throwable
VisitorvisitRollbackCommand in interface VisitorvisitRollbackCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleRollbackCommand(InvocationContext ctx, RollbackCommand command) throws Throwable
Throwablepublic final Object visitCommitCommand(InvocationContext ctx, CommitCommand command) throws Throwable
VisitorvisitCommitCommand in interface VisitorvisitCommitCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleCommitCommand(InvocationContext ctx, CommitCommand command) throws Throwable
Throwablepublic final Object visitOptimisticPrepareCommand(InvocationContext ctx, OptimisticPrepareCommand command) throws Throwable
VisitorvisitOptimisticPrepareCommand in interface VisitorvisitOptimisticPrepareCommand in class AbstractVisitorctx - invocation contextcommand - command to visitThrowable - in the event of problems.protected Object handleOptimisticPrepareCommand(InvocationContext ctx, OptimisticPrepareCommand 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 © 2012 JBoss, a division of Red Hat. All Rights Reserved.