Class TotalOrderInterceptor

  • All Implemented Interfaces:
    org.infinispan.commands.Visitor, AsyncInterceptor

    public class TotalOrderInterceptor
    extends DDAsyncInterceptor
    Created to control the total order validation. It disable the possibility of acquiring locks during execution through the cache API
    Author:
    Pedro Ruivo, Mircea.Markus@jboss.com
    • Constructor Detail

      • TotalOrderInterceptor

        public TotalOrderInterceptor()
    • Method Detail

      • visitPrepareCommand

        public final Object visitPrepareCommand​(org.infinispan.context.impl.TxInvocationContext ctx,
                                                org.infinispan.commands.tx.PrepareCommand command)
                                         throws Throwable
        Specified by:
        visitPrepareCommand in interface org.infinispan.commands.Visitor
        Overrides:
        visitPrepareCommand in class DDAsyncInterceptor
        Throws:
        Throwable
      • visitRollbackCommand

        public Object visitRollbackCommand​(org.infinispan.context.impl.TxInvocationContext ctx,
                                           org.infinispan.commands.tx.RollbackCommand command)
                                    throws Throwable
        Specified by:
        visitRollbackCommand in interface org.infinispan.commands.Visitor
        Overrides:
        visitRollbackCommand in class DDAsyncInterceptor
        Throws:
        Throwable
      • visitCommitCommand

        public Object visitCommitCommand​(org.infinispan.context.impl.TxInvocationContext ctx,
                                         org.infinispan.commands.tx.CommitCommand command)
                                  throws Throwable
        Specified by:
        visitCommitCommand in interface org.infinispan.commands.Visitor
        Overrides:
        visitCommitCommand in class DDAsyncInterceptor
        Throws:
        Throwable
      • visitLockControlCommand

        public final Object visitLockControlCommand​(org.infinispan.context.impl.TxInvocationContext ctx,
                                                    org.infinispan.commands.control.LockControlCommand command)
                                             throws Throwable
        Specified by:
        visitLockControlCommand in interface org.infinispan.commands.Visitor
        Overrides:
        visitLockControlCommand in class DDAsyncInterceptor
        Throws:
        Throwable