Package org.hornetq.core.transaction

Examples of org.hornetq.core.transaction.TransactionOperationAbstract


      }

      if (tx != null)
      {
         pendingDeletes.add(uniqueName);
         tx.addOperation(new TransactionOperationAbstract()
         {

            @Override
            public void afterCommit(Transaction tx)
            {
View Full Code Here


         ref.getQueue().cancel(theTx, ref);
      }

      if (wasStarted)
      {
         theTx.addOperation(new TransactionOperationAbstract()
         {

            public void afterRollback(Transaction tx)
            {
               for (ServerConsumer consumer : consumers.values())
View Full Code Here

         storage.deletePendingPageCounter(tx.getID(), pendingInfo.getA());

         // To apply the increment of the value just being cleaned
         increment(tx, valueCleaned.get());

         tx.addOperation(new TransactionOperationAbstract()
         {
            @Override
            public void afterCommit(Transaction tx)
            {
               pendingValue.addAndGet(-valueCleaned.get());
View Full Code Here

         ref.getQueue().cancel(theTx, ref);
      }
      //if we failed don't restart as an attempt to deliver messages may be made before we actually close the consumer
      if (wasStarted && !clientFailed)
      {
         theTx.addOperation(new TransactionOperationAbstract()
         {

            @Override
            public void afterRollback(Transaction tx)
            {
View Full Code Here

         }

         infoPG.acks.clear();
      }

      tx.addOperation(new TransactionOperationAbstract()
      {

         @Override
         public void afterCommit(final Transaction tx1)
         {
View Full Code Here

         ref.getQueue().cancel(theTx, ref);
      }
      //if we failed don't restart as an attempt to deliver messages may be made before we actually close the consumer
      if (wasStarted && !clientFailed)
      {
         theTx.addOperation(new TransactionOperationAbstract()
         {

            @Override
            public void afterRollback(Transaction tx)
            {
View Full Code Here

               }
            }
         }
      }

      tx.addOperation(new TransactionOperationAbstract()
      {

         @Override
         public void afterCommit(final Transaction tx)
         {
View Full Code Here

               }
            }
         }
      }

      tx.addOperation(new TransactionOperationAbstract()
      {

         @Override
         public void afterCommit(final Transaction tx)
         {
View Full Code Here

         ref.getQueue().cancel(theTx, ref);
      }
      //if we failed don't restart as an attempt to deliver messages may be made before we actually close the consumer
      if (wasStarted && !clientFailed)
      {
         theTx.addOperation(new TransactionOperationAbstract()
         {

            @Override
            public void afterRollback(Transaction tx)
            {
View Full Code Here

         ref.getQueue().cancel(theTx, ref);
      }
      //if we failed don't restart as an attempt to deliver messages may be made before we actually close the consumer
      if (wasStarted && !clientFailed)
      {
         theTx.addOperation(new TransactionOperationAbstract()
         {

            @Override
            public void afterRollback(Transaction tx)
            {
View Full Code Here

TOP

Related Classes of org.hornetq.core.transaction.TransactionOperationAbstract

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.