org.infinispan.interceptors
Class CallInterceptor
java.lang.Object
org.infinispan.commands.AbstractVisitor
org.infinispan.interceptors.base.CommandInterceptor
org.infinispan.interceptors.CallInterceptor
- All Implemented Interfaces:
- Visitor
public class CallInterceptor
- extends CommandInterceptor
Always at the end of the chain, directly in front of the cache. Simply calls into the cache using reflection. If the
call resulted in a modification, add the Modification to the end of the modification list keyed by the current
transaction.
- Since:
- 4.0
- Author:
- Bela Ban, Mircea.Markus@jboss.com
Methods inherited from class org.infinispan.commands.AbstractVisitor |
visitApplyDeltaCommand, visitClearCommand, visitCollection, visitDistributedExecuteCommand, visitEntrySetCommand, visitEvictCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitPutKeyValueCommand, visitPutMapCommand, visitRemoveCommand, visitReplaceCommand, visitSizeCommand, visitUnknownCommand, visitValuesCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CallInterceptor
public CallInterceptor()
getLog
protected Log getLog()
- Overrides:
getLog
in class CommandInterceptor
visitPrepareCommand
public Object visitPrepareCommand(TxInvocationContext ctx,
PrepareCommand command)
throws Throwable
- Specified by:
visitPrepareCommand
in interface Visitor
- Overrides:
visitPrepareCommand
in class AbstractVisitor
- Throws:
Throwable
visitCommitCommand
public Object visitCommitCommand(TxInvocationContext ctx,
CommitCommand command)
throws Throwable
- Specified by:
visitCommitCommand
in interface Visitor
- Overrides:
visitCommitCommand
in class AbstractVisitor
- Throws:
Throwable
visitRollbackCommand
public Object visitRollbackCommand(TxInvocationContext ctx,
RollbackCommand command)
throws Throwable
- Specified by:
visitRollbackCommand
in interface Visitor
- Overrides:
visitRollbackCommand
in class AbstractVisitor
- Throws:
Throwable
visitLockControlCommand
public Object visitLockControlCommand(TxInvocationContext ctx,
LockControlCommand c)
throws Throwable
- Specified by:
visitLockControlCommand
in interface Visitor
- Overrides:
visitLockControlCommand
in class AbstractVisitor
- Throws:
Throwable
handleDefault
public final Object handleDefault(InvocationContext ctx,
VisitableCommand command)
throws Throwable
- Description copied from class:
CommandInterceptor
- 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.
- Overrides:
handleDefault
in class CommandInterceptor
- Parameters:
ctx
- invocation contextcommand
- command to invoke
- Returns:
- return value
- Throws:
Throwable
- in the event of problems
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.