|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.commands.AbstractVisitor
org.jboss.cache.interceptors.base.CommandInterceptor
org.jboss.cache.interceptors.base.SkipCheckChainedInterceptor
public abstract class SkipCheckChainedInterceptor
This interceptor will call 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.
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).
| Field Summary |
|---|
| Fields inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
|---|
configuration, log, trace |
| Constructor Summary | |
|---|---|
SkipCheckChainedInterceptor()
|
|
| Methods inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
|---|
dumpStatistics, getNext, getStatisticsEnabled, hasNext, invokeNextInterceptor, resetStatistics, setNext, setStatisticsEnabled |
| Methods inherited from class org.jboss.cache.commands.AbstractVisitor |
|---|
visitCollection, visitCreateNodeCommand |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SkipCheckChainedInterceptor()
| Method Detail |
|---|
public final Object visitPutDataMapCommand(InvocationContext ctx,
PutDataMapCommand command)
throws Throwable
Visitor
visitPutDataMapCommand in interface VisitorvisitPutDataMapCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handlePutDataMapCommand(InvocationContext ctx,
PutDataMapCommand command)
throws Throwable
Throwable
public final Object visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
throws Throwable
Visitor
visitPutKeyValueCommand in interface VisitorvisitPutKeyValueCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handlePutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
throws Throwable
Throwable
public final Object visitRemoveNodeCommand(InvocationContext ctx,
RemoveNodeCommand command)
throws Throwable
Visitor
visitRemoveNodeCommand in interface VisitorvisitRemoveNodeCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleRemoveNodeCommand(InvocationContext ctx,
RemoveNodeCommand command)
throws Throwable
Throwable
public final Object visitRemoveDataCommand(InvocationContext ctx,
RemoveDataCommand command)
throws Throwable
Visitor
visitRemoveDataCommand in interface VisitorvisitRemoveDataCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleRemoveDataCommand(InvocationContext ctx,
RemoveDataCommand command)
throws Throwable
Throwable
public final Object visitEvictFqnCommand(InvocationContext ctx,
EvictCommand command)
throws Throwable
Visitor
visitEvictFqnCommand in interface VisitorvisitEvictFqnCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleEvictFqnCommand(InvocationContext ctx,
EvictCommand command)
throws Throwable
Throwable
public final Object visitInvalidateCommand(InvocationContext ctx,
InvalidateCommand command)
throws Throwable
Visitor
visitInvalidateCommand in interface VisitorvisitInvalidateCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleInvalidateCommand(InvocationContext ctx,
InvalidateCommand command)
throws Throwable
Throwable
public final Object visitRemoveKeyCommand(InvocationContext ctx,
RemoveKeyCommand command)
throws Throwable
Visitor
visitRemoveKeyCommand in interface VisitorvisitRemoveKeyCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleRemoveKeyCommand(InvocationContext ctx,
RemoveKeyCommand command)
throws Throwable
Throwable
public final Object visitGetDataMapCommand(InvocationContext ctx,
GetDataMapCommand command)
throws Throwable
Visitor
visitGetDataMapCommand in interface VisitorvisitGetDataMapCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleGetDataMapCommand(InvocationContext ctx,
GetDataMapCommand command)
throws Throwable
Throwable
public final Object visitExistsNodeCommand(InvocationContext ctx,
ExistsCommand command)
throws Throwable
Visitor
visitExistsNodeCommand in interface VisitorvisitExistsNodeCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleExistsNodeCommand(InvocationContext ctx,
ExistsCommand command)
throws Throwable
Throwable
public final Object visitGetKeyValueCommand(InvocationContext ctx,
GetKeyValueCommand command)
throws Throwable
Visitor
visitGetKeyValueCommand in interface VisitorvisitGetKeyValueCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleGetKeyValueCommand(InvocationContext ctx,
GetKeyValueCommand command)
throws Throwable
Throwable
public final Object visitGetNodeCommand(InvocationContext ctx,
GetNodeCommand command)
throws Throwable
Visitor
visitGetNodeCommand in interface VisitorvisitGetNodeCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleGetNodeCommand(InvocationContext ctx,
GetNodeCommand command)
throws Throwable
Throwable
public final Object visitGetKeysCommand(InvocationContext ctx,
GetKeysCommand command)
throws Throwable
Visitor
visitGetKeysCommand in interface VisitorvisitGetKeysCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleGetKeysCommand(InvocationContext ctx,
GetKeysCommand command)
throws Throwable
Throwable
public final Object visitGetChildrenNamesCommand(InvocationContext ctx,
GetChildrenNamesCommand command)
throws Throwable
Visitor
visitGetChildrenNamesCommand in interface VisitorvisitGetChildrenNamesCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleGetChildrenNamesCommand(InvocationContext ctx,
GetChildrenNamesCommand command)
throws Throwable
Throwable
public final Object visitMoveCommand(InvocationContext ctx,
MoveCommand command)
throws Throwable
Visitor
visitMoveCommand in interface VisitorvisitMoveCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleMoveCommand(InvocationContext ctx,
MoveCommand command)
throws Throwable
Throwable
public final Object visitGravitateDataCommand(InvocationContext ctx,
GravitateDataCommand command)
throws Throwable
Visitor
visitGravitateDataCommand in interface VisitorvisitGravitateDataCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleGravitateDataCommand(InvocationContext ctx,
GravitateDataCommand command)
throws Throwable
Throwable
public final Object visitPrepareCommand(InvocationContext ctx,
PrepareCommand command)
throws Throwable
Visitor
visitPrepareCommand in interface VisitorvisitPrepareCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handlePrepareCommand(InvocationContext ctx,
PrepareCommand command)
throws Throwable
Throwable
public final Object visitRollbackCommand(InvocationContext ctx,
RollbackCommand command)
throws Throwable
Visitor
visitRollbackCommand in interface VisitorvisitRollbackCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleRollbackCommand(InvocationContext ctx,
RollbackCommand command)
throws Throwable
Throwable
public final Object visitCommitCommand(InvocationContext ctx,
CommitCommand command)
throws Throwable
Visitor
visitCommitCommand in interface VisitorvisitCommitCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleCommitCommand(InvocationContext ctx,
CommitCommand command)
throws Throwable
Throwable
public final Object visitOptimisticPrepareCommand(InvocationContext ctx,
OptimisticPrepareCommand command)
throws Throwable
Visitor
visitOptimisticPrepareCommand in interface VisitorvisitOptimisticPrepareCommand in class AbstractVisitorctx - invocation contextcommand - command to visit
Throwable - in the event of problems.
protected Object handleOptimisticPrepareCommand(InvocationContext ctx,
OptimisticPrepareCommand command)
throws Throwable
Throwable
public final Object handleDefault(InvocationContext ctx,
VisitableCommand command)
throws Throwable
CommandInterceptor
handleDefault in class CommandInterceptorctx - invocation contextcommand - command to invoke
Throwable - in the event of problems
protected Object handleAll(InvocationContext ctx,
VisitableCommand command)
throws Throwable
ctx - invocation contextcommand - command
Throwable - in the event of problems
protected abstract boolean skipInterception(InvocationContext ctx,
VisitableCommand command)
ctx - invocation contextcommand - command
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||