[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Some feedback on latest journal changes

clebert.suconic@jboss.com do-not-reply at jboss.com
Thu Jul 31 10:27:51 EDT 2008


"timfox" wrote : One more:
  | 
  | JournalTransaction numberOfElements - does the AtomicInteger ever get incremented?
  | 

     private AtomicInteger getCounter(final JournalFile file)
  |       {
  |          AtomicInteger value = numberOfElements.get(file.getOrderingID());
  |          
  |          if (value == null)
  |          {
  |             value = new AtomicInteger();
  |             numberOfElements.put(file.getOrderingID(), value);            
  |          }
  |          
  |          return value;
  |       }
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167927#4167927

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167927



More information about the jboss-dev-forums mailing list