public abstract class SkipCheckChainedInterceptor extends CommandInterceptor
skipInterception(org.jboss.cache.InvocationContext ,org.jboss.cache.commands.VisitableCommand) before invoking each visit method
(and the handleDefault(org.jboss.cache.InvocationContext , org.jboss.cache.commands.VisitableCommand) method). If
skipInterception(org.jboss.cache.InvocationContext ,org.jboss.cache.commands.VisitableCommand) returns false, the invocation will be skipped
and passed up the interceptor chain instead.
Instead of overriding visitXXX() methods, implementations should override their handleXXX() counterparts defined in this class
instead, as well as the skipInterception(org.jboss.cache.InvocationContext ,org.jboss.cache.commands.VisitableCommand) method.
Also, instead of overriding handleDefault(org.jboss.cache.InvocationContext , org.jboss.cache.commands.VisitableCommand), implementors
should override handleAll(org.jboss.cache.InvocationContext , org.jboss.cache.commands.VisitableCommand).configuration, log, trace| Constructor and Description |
|---|
SkipCheckChainedInterceptor() |
getNext, hasNext, invokeNextInterceptor, setNextvisitCollection, visitCreateNodeCommandpublic 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 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 handleRemoveDataCommand(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
Throwablepublic final Object handleDefault(InvocationContext ctx, VisitableCommand command) throws Throwable
CommandInterceptorhandleDefault in class CommandInterceptorctx - invocation contextcommand - command to invokeThrowable - in the event of problemsprotected Object handleAll(InvocationContext ctx, VisitableCommand command) throws Throwable
ctx - invocation contextcommand - commandThrowable - in the event of problemsprotected abstract boolean skipInterception(InvocationContext ctx, VisitableCommand command)
ctx - invocation contextcommand - commandCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.