svn commit: r661223 - in /activemq/camel/trunk/components/camel-scala/src: main/scala/org/apache/camel/scala/dsl/SResequencerType.scala test/scala/org/apache/camel/scala/dsl/ResequencerTest.scala

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r661223 - in /activemq/camel/trunk/components/camel-scala/src: main/scala/org/apache/camel/scala/dsl/SResequencerType.scala test/scala/org/apache/camel/scala/dsl/ResequencerTest.scala

gertv-2
Author: gertv
Date: Wed May 28 23:39:42 2008
New Revision: 661223

URL: http://svn.apache.org/viewvc?rev=661223&view=rev
Log:
CAMEL-463: Adding resequencer support

Modified:
    activemq/camel/trunk/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/SResequencerType.scala
    activemq/camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/ResequencerTest.scala

Modified: activemq/camel/trunk/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/SResequencerType.scala
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/SResequencerType.scala?rev=661223&r1=661222&r2=661223&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/SResequencerType.scala (original)
+++ activemq/camel/trunk/components/camel-scala/src/main/scala/org/apache/camel/scala/dsl/SResequencerType.scala Wed May 28 23:39:42 2008
@@ -23,6 +23,6 @@
   
   val unwrap = target
   
-  def batch = this
+  def batch(count: Int) = this
 
 }

Modified: activemq/camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/ResequencerTest.scala
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/ResequencerTest.scala?rev=661223&r1=661222&r2=661223&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/ResequencerTest.scala (original)
+++ activemq/camel/trunk/components/camel-scala/src/test/scala/org/apache/camel/scala/dsl/ResequencerTest.scala Wed May 28 23:39:42 2008
@@ -70,7 +70,7 @@
        //START SNIPPET: batch
        "direct:d" ==> {
          to ("mock:d")
-         resequence (_.in) batch {
+         resequence (_.in) batch(1) apply {
            to ("mock:e")
          }
        }