|
||||||||||
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.BaseTransactionalContextInterceptor
org.jboss.cache.interceptors.InvocationContextInterceptor
public class InvocationContextInterceptor
Always place this interceptor at the start of the interceptor chain to ensure invocation contexts and set up and cleaned up correctly.
Field Summary |
---|
Fields inherited from class org.jboss.cache.interceptors.BaseTransactionalContextInterceptor |
---|
txManager, txTable |
Fields inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
---|
configuration, log, trace |
Constructor Summary | |
---|---|
InvocationContextInterceptor()
|
Method Summary | |
---|---|
java.lang.Object |
handleDefault(InvocationContext ctx,
VisitableCommand command)
The default behaviour of the visitXXX methods, which is to ignore the call and pass the call up to the next interceptor in the chain. |
void |
setDependencies(RPCManager rpcManager)
|
java.lang.Object |
visitClearDataCommand(InvocationContext ctx,
ClearDataCommand command)
Visits a RemoveDataCommand. |
java.lang.Object |
visitCommitCommand(InvocationContext ctx,
CommitCommand command)
Visits a CommitCommand. |
java.lang.Object |
visitExistsNodeCommand(InvocationContext ctx,
ExistsCommand command)
Visits a RemoteExistsCommand. |
java.lang.Object |
visitOptimisticPrepareCommand(InvocationContext ctx,
OptimisticPrepareCommand command)
Visits a OptimisticPrepareCommand. |
java.lang.Object |
visitPrepareCommand(InvocationContext ctx,
PrepareCommand command)
Visits a PrepareCommand. |
java.lang.Object |
visitPutDataMapCommand(InvocationContext ctx,
PutDataMapCommand command)
Visits a PutDataMapCommand. |
java.lang.Object |
visitPutForExternalReadCommand(InvocationContext ctx,
PutForExternalReadCommand command)
Visits a PutForExternalReadCommand. |
java.lang.Object |
visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
Visits a PutKeyValueCommand. |
java.lang.Object |
visitRemoveKeyCommand(InvocationContext ctx,
RemoveKeyCommand command)
Visits a RemoveKeyCommand. |
java.lang.Object |
visitRemoveNodeCommand(InvocationContext ctx,
RemoveNodeCommand command)
Visits a RemoveNodeCommand. |
java.lang.Object |
visitRollbackCommand(InvocationContext ctx,
RollbackCommand command)
Visits a RollbackCommand. |
Methods inherited from class org.jboss.cache.interceptors.BaseTransactionalContextInterceptor |
---|
copyInvocationScopeOptionsToTxScope, isRollingBack, setTransactionalContext |
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, visitEvictFqnCommand, visitGetDataMapCommand, visitGetChildrenNamesCommand, visitGetKeysCommand, visitGetKeyValueCommand, visitGetNodeCommand, visitGravitateDataCommand, visitInvalidateCommand, visitMoveCommand |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InvocationContextInterceptor()
Method Detail |
---|
public void setDependencies(RPCManager rpcManager)
public java.lang.Object visitPutDataMapCommand(InvocationContext ctx, PutDataMapCommand command) throws java.lang.Throwable
Visitor
visitPutDataMapCommand
in interface Visitor
visitPutDataMapCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitExistsNodeCommand(InvocationContext ctx, ExistsCommand command) throws java.lang.Throwable
Visitor
visitExistsNodeCommand
in interface Visitor
visitExistsNodeCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitPutForExternalReadCommand(InvocationContext ctx, PutForExternalReadCommand command) throws java.lang.Throwable
Visitor
visitPutForExternalReadCommand
in interface Visitor
visitPutForExternalReadCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws java.lang.Throwable
Visitor
visitPutKeyValueCommand
in interface Visitor
visitPutKeyValueCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitRemoveNodeCommand(InvocationContext ctx, RemoveNodeCommand command) throws java.lang.Throwable
Visitor
visitRemoveNodeCommand
in interface Visitor
visitRemoveNodeCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitClearDataCommand(InvocationContext ctx, ClearDataCommand command) throws java.lang.Throwable
Visitor
visitClearDataCommand
in interface Visitor
visitClearDataCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitRemoveKeyCommand(InvocationContext ctx, RemoveKeyCommand command) throws java.lang.Throwable
Visitor
visitRemoveKeyCommand
in interface Visitor
visitRemoveKeyCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitPrepareCommand(InvocationContext ctx, PrepareCommand command) throws java.lang.Throwable
Visitor
visitPrepareCommand
in interface Visitor
visitPrepareCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitRollbackCommand(InvocationContext ctx, RollbackCommand command) throws java.lang.Throwable
Visitor
visitRollbackCommand
in interface Visitor
visitRollbackCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitCommitCommand(InvocationContext ctx, CommitCommand command) throws java.lang.Throwable
Visitor
visitCommitCommand
in interface Visitor
visitCommitCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object visitOptimisticPrepareCommand(InvocationContext ctx, OptimisticPrepareCommand command) throws java.lang.Throwable
Visitor
visitOptimisticPrepareCommand
in interface Visitor
visitOptimisticPrepareCommand
in class AbstractVisitor
ctx
- invocation contextcommand
- command to visit
java.lang.Throwable
- in the event of problems.public java.lang.Object handleDefault(InvocationContext ctx, VisitableCommand command) throws java.lang.Throwable
CommandInterceptor
handleDefault
in class CommandInterceptor
ctx
- invocation contextcommand
- command to invoke
java.lang.Throwable
- in the event of problems
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |