Package org.hornetq.core.transaction.impl

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


               count++;
               move(toAddress, tx, ref, false, rejectDuplicates);
               acknowledge(tx, ref);
            }

            tx.commit();

            return count;
         }
         finally
         {
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
    */
 
View Full Code Here

         {
            cursor.ackTx(tx, msg);
         }
      }

      tx.commit();

      server.stop();

      OperationContextImpl.clearContext();
View Full Code Here

         PagedReference msg = iterator.next();
         assertEquals(i, msg.getMessage().getIntProperty("key").intValue());
         cursor.ackTx(tx, msg);
      }

      tx.commit();

      server.stop();
      createServer();
      waitCleanup();
      assertEquals(1, lookupPageStore(ADDRESS).getNumberOfPages());
View Full Code Here

                  addTail(reference, false);
               }
            }
         }

         tx.commit();
        
        
         if (filter != null && pageIterator != null)
         {
            scheduleDepage(false);
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

               count++;
               move(toAddress, tx, ref, false, rejectDuplicates);
               acknowledge(tx, ref);
            }

            tx.commit();

            return count;
         }
         finally
         {
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
    */
 
View Full Code Here

               }
            });
         }
      });

      tx.commit();

   }

   @Override
   public String toString()
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.