Package org.hornetq.core.transaction.impl

Examples of org.hornetq.core.transaction.impl.TransactionImpl.commit()


               }
            });
         }
      });

      tx.commit();

   }

   @Override
   public String toString()
View Full Code Here


   public void ack(final PagedReference reference) throws Exception
   {
      // Need to do the ACK and counter atomically (inside a TX) or the counter could get out of sync
      Transaction tx = new TransactionImpl(this.store);
      ackTx(tx, reference);
      tx.commit();
   }

   public void confirmPosition(final PagePosition position) throws Exception
   {
      // if we are dealing with a persistent cursor
View Full Code Here

   {
      Transaction tx = new TransactionImpl(storage);

      delete(tx);

      tx.commit();
   }

   public void delete(Transaction tx) throws Exception
   {
      // always lock the StorageManager first.
View Full Code Here

         }
      }

      try
      {
         tx.commit();
      }
      catch (Exception e)
      {
         HornetQServerLogger.LOGGER.warn("Error while cleaning page, during the commit", e);
      }
View Full Code Here

            }
         }

         if (txCount > 0)
         {
            tx.commit();

            tx = new TransactionImpl(storageManager);

            txCount = 0;
         }
View Full Code Here

            txCount++;
         }

         if (txCount > 0)
         {
            tx.commit();
            tx = new TransactionImpl(storageManager);
            txCount = 0;
         }

View Full Code Here

                  addTail(reference, false);
               }

               if (txCount > 0 && txCount % flushLimit == 0)
               {
                  tx.commit();
                  tx = new TransactionImpl(storageManager);
                  txCount = 0;
               }
            }
         }
View Full Code Here

            }
         }

         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

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.