activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1032141 - /activemq/activemq-apollo/trunk/apollo-store/src/main/scala/org/apache/activemq/apollo/store/DelayingStoreSupport.scala
Date Sat, 06 Nov 2010 20:55:27 GMT
Author: chirino
Date: Sat Nov  6 20:55:27 2010
New Revision: 1032141

URL: http://svn.apache.org/viewvc?rev=1032141&view=rev
Log:
Aggregate events more.

Modified:
    activemq/activemq-apollo/trunk/apollo-store/src/main/scala/org/apache/activemq/apollo/store/DelayingStoreSupport.scala

Modified: activemq/activemq-apollo/trunk/apollo-store/src/main/scala/org/apache/activemq/apollo/store/DelayingStoreSupport.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-store/src/main/scala/org/apache/activemq/apollo/store/DelayingStoreSupport.scala?rev=1032141&r1=1032140&r2=1032141&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-store/src/main/scala/org/apache/activemq/apollo/store/DelayingStoreSupport.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-store/src/main/scala/org/apache/activemq/apollo/store/DelayingStoreSupport.scala
Sat Nov  6 20:55:27 2010
@@ -46,7 +46,8 @@ trait DelayingStoreSupport extends Store
   // Implementation of the BaseService interface
   //
   /////////////////////////////////////////////////////////////////////
-  val dispatchQueue = createQueue(toString)
+  val dispatchQueue:DispatchQueue = createQueue(toString)
+  val aggregator = new AggregatingExecutor(dispatchQueue)
 
   /////////////////////////////////////////////////////////////////////
   //
@@ -109,7 +110,7 @@ trait DelayingStoreSupport extends Store
       this.synchronized {
         actions += record.key -> action
       }
-      dispatchQueue {
+      aggregator {
         pendingStores.put(record.key, action)
       }
       delayable_actions += 1
@@ -134,7 +135,7 @@ trait DelayingStoreSupport extends Store
         delayable_actions += 1
         a
       }
-      dispatchQueue {
+      aggregator {
         pending_enqueues.put(key(entry), a)
       }
 



Mime
View raw message