Package org.hornetq.core.transaction

Examples of org.hornetq.core.transaction.Transaction.commit()


            }
         }

         if (txCount > 0)
         {
            tx.commit();
            tx = null;
         }


View Full Code Here


               deleted = true;
               break;
            }
         }

         tx.commit();

         return deleted;
      }
      finally
      {
View Full Code Here

               refRemoved(ref);
               count++;
            }
         }

         tx.commit();

         return count;
      }
      finally
      {
View Full Code Here

         {
            storageManager.deleteQueueBinding(tx.getID(), getID());
            tx.setContainsPersistent();
         }
        
         tx.commit();
      }
      catch (Exception e)
      {
         tx.rollback();
         throw e;
View Full Code Here

      postOffice.route(copyMessage, tx, false, rejectDuplicate);

      acknowledge(tx, ref);

      tx.commit();
   }

   /*
    * This method delivers the reference on the callers thread - this can give us better latency in the case there is nothing in the queue
    * note: you require to synchronize this at the callers
View Full Code Here

               throw new HornetQXAException(XAException.XAER_PROTO, "Cannot commit transaction, it is suspended " + xid);
            }
            else
            {
               theTx.commit(onePhase);
            }
         }
      }
   }
View Full Code Here

            {
               pendingValue.addAndGet(-valueCleaned.get());
            }
         });

         tx.commit();
      }
   }


   @Override
View Full Code Here

   {
      Transaction tx = new TransactionImpl(storage);

      delete(tx);

      tx.commit();
   }

   public synchronized void delete(Transaction tx) throws Exception
   {
        for (Long record : incrementRecords)
View Full Code Here

                  addTail(reference, false);
               }
            }
         }

         tx.commit();
        
        
         if (filter != null && pageIterator != null)
         {
            scheduleDepage();
View Full Code Here

               deleted = true;
               break;
            }
         }

         tx.commit();

         return deleted;
      }
      finally
      {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.