You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2010/11/06 21:55:27 UTC

svn commit: r1032141 - /activemq/activemq-apollo/trunk/apollo-store/src/main/scala/org/apache/activemq/apollo/store/DelayingStoreSupport.scala

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)
       }