|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
---|
getNext, hasNext, invokeNextInterceptor, setNext |
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 Visitor
visitPutDataMapCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitPutKeyValueCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.public final Object visitPutForExternalReadCommand(InvocationContext ctx, PutForExternalReadCommand command) throws Throwable
Visitor
visitPutForExternalReadCommand
in interface Visitor
visitPutForExternalReadCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.protected Object handlePutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
Throwable
protected Object handlePutForExternalReadCommand(InvocationContext ctx, PutForExternalReadCommand command) throws Throwable
Throwable
public final Object visitRemoveNodeCommand(InvocationContext ctx, RemoveNodeCommand command) throws Throwable
Visitor
visitRemoveNodeCommand
in interface Visitor
visitRemoveNodeCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.protected Object handleRemoveNodeCommand(InvocationContext ctx, RemoveNodeCommand command) throws Throwable
Throwable
public final Object visitClearDataCommand(InvocationContext ctx, ClearDataCommand command) throws Throwable
Visitor
visitClearDataCommand
in interface Visitor
visitClearDataCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
Throwable
- in the event of problems.protected Object handleRemoveDataCommand(InvocationContext ctx, ClearDataCommand command) throws Throwable
Throwable
public final Object visitEvictFqnCommand(InvocationContext ctx, EvictCommand command) throws Throwable
Visitor
visitEvictFqnCommand
in interface Visitor
visitEvictFqnCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitInvalidateCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitRemoveKeyCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitGetDataMapCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitExistsNodeCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitGetKeyValueCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitGetNodeCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitGetKeysCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitGetChildrenNamesCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitMoveCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitGravitateDataCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitPrepareCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitRollbackCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitCommitCommand
in class AbstractVisitor
ctx
- 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 Visitor
visitOptimisticPrepareCommand
in class AbstractVisitor
ctx
- 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 CommandInterceptor
ctx
- invocation contextcommand
- command to invoke
Throwable
- in the event of problemsprotected Object handleAll(InvocationContext ctx, VisitableCommand command) throws Throwable
ctx
- invocation contextcommand
- command
Throwable
- in the event of problemsprotected 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 |