Splitting a collection on Scala DSL

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Splitting a collection on Scala DSL

Bruno Borges
Does anyone know how to use the splitter to break a collection?

I'm trying this and can't make it work:

  "websocket:0.0.0.0:8080/images" ==> {
    setBody(lruImages)
    split(lruImages) {
    marshal(jsonFormat)
    to("websocket:0.0.0.0:8080/images")
    }
  }

lruImages is a ArrayBlockingQueue

*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*
Reply | Threaded
Open this post in threaded view
|

Re: Splitting a collection on Scala DSL

Bruno Borges
Oh, forget it... fixed another problem that solved this one ;-)

*Bruno Borges*
(11) 99564-9058
*www.brunoborges.com*



On Tue, Oct 2, 2012 at 5:44 PM, Bruno Borges <[hidden email]> wrote:

> Does anyone know how to use the splitter to break a collection?
>
> I'm trying this and can't make it work:
>
>   "websocket:0.0.0.0:8080/images" ==> {
>     setBody(lruImages)
>     split(lruImages) {
>     marshal(jsonFormat)
>     to("websocket:0.0.0.0:8080/images")
>     }
>   }
>
> lruImages is a ArrayBlockingQueue
>
> *Bruno Borges*
> (11) 99564-9058
> *www.brunoborges.com*
>
>