org.mobicents.cache
Class MobicentsCommandInterceptor
java.lang.Object
org.jboss.cache.commands.AbstractVisitor
org.jboss.cache.interceptors.base.CommandInterceptor
org.mobicents.cache.MobicentsCommandInterceptor
- All Implemented Interfaces:
- org.jboss.cache.commands.Visitor
public class MobicentsCommandInterceptor
- extends org.jboss.cache.interceptors.base.CommandInterceptor
JBoss Cache interceptor to ensure the cache is used with a valid transaction
context.
- Author:
- martins
| Fields inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
configuration, log, trace |
|
Method Summary |
java.lang.Object |
visitClearDataCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.ClearDataCommand command)
|
void |
visitCollection(org.jboss.cache.InvocationContext arg0,
java.util.Collection<? extends org.jboss.cache.commands.VisitableCommand> arg1)
|
java.lang.Object |
visitCommitCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.tx.CommitCommand command)
|
java.lang.Object |
visitCreateNodeCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.legacy.write.CreateNodeCommand command)
|
java.lang.Object |
visitEvictFqnCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.EvictCommand command)
|
java.lang.Object |
visitExistsNodeCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.read.ExistsCommand command)
|
java.lang.Object |
visitGetChildrenNamesCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.read.GetChildrenNamesCommand command)
|
java.lang.Object |
visitGetDataMapCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.read.GetDataMapCommand command)
|
java.lang.Object |
visitGetKeysCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.read.GetKeysCommand command)
|
java.lang.Object |
visitGetKeyValueCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.read.GetKeyValueCommand command)
|
java.lang.Object |
visitGetNodeCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.read.GetNodeCommand command)
|
java.lang.Object |
visitGravitateDataCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.read.GravitateDataCommand command)
|
java.lang.Object |
visitInvalidateCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.InvalidateCommand command)
|
java.lang.Object |
visitMoveCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.MoveCommand command)
|
java.lang.Object |
visitOptimisticPrepareCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.tx.OptimisticPrepareCommand command)
|
java.lang.Object |
visitPrepareCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.tx.PrepareCommand command)
|
java.lang.Object |
visitPutDataMapCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.PutDataMapCommand command)
|
java.lang.Object |
visitPutForExternalReadCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.PutForExternalReadCommand command)
|
java.lang.Object |
visitPutKeyValueCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.PutKeyValueCommand command)
|
java.lang.Object |
visitRemoveKeyCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.RemoveKeyCommand command)
|
java.lang.Object |
visitRemoveNodeCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.RemoveNodeCommand command)
|
java.lang.Object |
visitRollbackCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.tx.RollbackCommand command)
|
| Methods inherited from class org.jboss.cache.interceptors.base.CommandInterceptor |
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MobicentsCommandInterceptor
public MobicentsCommandInterceptor(javax.transaction.TransactionManager txMgr)
visitClearDataCommand
public java.lang.Object visitClearDataCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.ClearDataCommand command)
throws java.lang.Throwable
- Specified by:
visitClearDataCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitClearDataCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitCollection
public void visitCollection(org.jboss.cache.InvocationContext arg0,
java.util.Collection<? extends org.jboss.cache.commands.VisitableCommand> arg1)
throws java.lang.Throwable
- Overrides:
visitCollection in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitCommitCommand
public java.lang.Object visitCommitCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.tx.CommitCommand command)
throws java.lang.Throwable
- Specified by:
visitCommitCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitCommitCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitCreateNodeCommand
public java.lang.Object visitCreateNodeCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.legacy.write.CreateNodeCommand command)
throws java.lang.Throwable
- Specified by:
visitCreateNodeCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitCreateNodeCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitEvictFqnCommand
public java.lang.Object visitEvictFqnCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.EvictCommand command)
throws java.lang.Throwable
- Specified by:
visitEvictFqnCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitEvictFqnCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitExistsNodeCommand
public java.lang.Object visitExistsNodeCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.read.ExistsCommand command)
throws java.lang.Throwable
- Specified by:
visitExistsNodeCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitExistsNodeCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitGetChildrenNamesCommand
public java.lang.Object visitGetChildrenNamesCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.read.GetChildrenNamesCommand command)
throws java.lang.Throwable
- Specified by:
visitGetChildrenNamesCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitGetChildrenNamesCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitGetDataMapCommand
public java.lang.Object visitGetDataMapCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.read.GetDataMapCommand command)
throws java.lang.Throwable
- Specified by:
visitGetDataMapCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitGetDataMapCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitGetKeysCommand
public java.lang.Object visitGetKeysCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.read.GetKeysCommand command)
throws java.lang.Throwable
- Specified by:
visitGetKeysCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitGetKeysCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitGetKeyValueCommand
public java.lang.Object visitGetKeyValueCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.read.GetKeyValueCommand command)
throws java.lang.Throwable
- Specified by:
visitGetKeyValueCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitGetKeyValueCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitGetNodeCommand
public java.lang.Object visitGetNodeCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.read.GetNodeCommand command)
throws java.lang.Throwable
- Specified by:
visitGetNodeCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitGetNodeCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitGravitateDataCommand
public java.lang.Object visitGravitateDataCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.read.GravitateDataCommand command)
throws java.lang.Throwable
- Specified by:
visitGravitateDataCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitGravitateDataCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitInvalidateCommand
public java.lang.Object visitInvalidateCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.InvalidateCommand command)
throws java.lang.Throwable
- Specified by:
visitInvalidateCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitInvalidateCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitMoveCommand
public java.lang.Object visitMoveCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.MoveCommand command)
throws java.lang.Throwable
- Specified by:
visitMoveCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitMoveCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitOptimisticPrepareCommand
public java.lang.Object visitOptimisticPrepareCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.tx.OptimisticPrepareCommand command)
throws java.lang.Throwable
- Specified by:
visitOptimisticPrepareCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitOptimisticPrepareCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitPrepareCommand
public java.lang.Object visitPrepareCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.tx.PrepareCommand command)
throws java.lang.Throwable
- Specified by:
visitPrepareCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitPrepareCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitPutDataMapCommand
public java.lang.Object visitPutDataMapCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.PutDataMapCommand command)
throws java.lang.Throwable
- Specified by:
visitPutDataMapCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitPutDataMapCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitPutForExternalReadCommand
public java.lang.Object visitPutForExternalReadCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.PutForExternalReadCommand command)
throws java.lang.Throwable
- Specified by:
visitPutForExternalReadCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitPutForExternalReadCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitPutKeyValueCommand
public java.lang.Object visitPutKeyValueCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.PutKeyValueCommand command)
throws java.lang.Throwable
- Specified by:
visitPutKeyValueCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitPutKeyValueCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitRemoveKeyCommand
public java.lang.Object visitRemoveKeyCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.RemoveKeyCommand command)
throws java.lang.Throwable
- Specified by:
visitRemoveKeyCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitRemoveKeyCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitRemoveNodeCommand
public java.lang.Object visitRemoveNodeCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.write.RemoveNodeCommand command)
throws java.lang.Throwable
- Specified by:
visitRemoveNodeCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitRemoveNodeCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
visitRollbackCommand
public java.lang.Object visitRollbackCommand(org.jboss.cache.InvocationContext ctx,
org.jboss.cache.commands.tx.RollbackCommand command)
throws java.lang.Throwable
- Specified by:
visitRollbackCommand in interface org.jboss.cache.commands.Visitor- Overrides:
visitRollbackCommand in class org.jboss.cache.commands.AbstractVisitor
- Throws:
java.lang.Throwable
Copyright © 2009. All Rights Reserved.