You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by gquintana <ge...@gmail.com> on 2013/07/29 10:52:20 UTC

SEDA with PriorityBlockingQueue

Hi,

Is it possible to configure a SEDA endpoint so as to handle priorities using
a PriorityBlockingQueue instead of LinkedBlockingQueue, and optionally
provide a Comparator to sort messages?

Thanks,
Gérald



--
View this message in context: http://camel.465427.n5.nabble.com/SEDA-with-PriorityBlockingQueue-tp5736411.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: SEDA with PriorityBlockingQueue

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Yes sounds great. Feel free to create a JIRA and work on this.
We love contributions
http://camel.apache.org/contributing.html

On Tue, Jul 30, 2013 at 9:20 AM, gquintana <ge...@gmail.com> wrote:
> I can open a JIRA for creating the queue factory, and then  propose a PR if
> you wish.
> Gérald
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/SEDA-with-PriorityBlockingQueue-tp5736411p5736467.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: SEDA with PriorityBlockingQueue

Posted by gquintana <ge...@gmail.com>.
I can open a JIRA for creating the queue factory, and then  propose a PR if
you wish.
Gérald



--
View this message in context: http://camel.465427.n5.nabble.com/SEDA-with-PriorityBlockingQueue-tp5736411p5736467.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: SEDA with PriorityBlockingQueue

Posted by Christian Posta <ch...@gmail.com>.
+1 ... good idea Claus


On Mon, Jul 29, 2013 at 4:32 PM, Raul Kripalani <ra...@evosent.com> wrote:

> +1. It would enable many interesting solutions.
> On 29 Jul 2013 15:48, "Christian Müller" <ch...@gmail.com>
> wrote:
>
> > +1
> >
> > Best,
> > Christian
> > Am 29.07.2013 11:00 schrieb "Claus Ibsen" <cl...@gmail.com>:
> >
> > > Hi
> > >
> > > Yeah if you use java code and create the SedaEndpoints manually. You
> > > can pass in the queue instance of your choice.
> > >
> > > Though maybe we should have an interface for a queue factory so people
> > > can configure this once on the seda component once, and have it work
> > > out of the box?
> > >
> > >
> > > On Mon, Jul 29, 2013 at 10:52 AM, gquintana <gerald.quintana@gmail.com
> >
> > > wrote:
> > > > Hi,
> > > >
> > > > Is it possible to configure a SEDA endpoint so as to handle
> priorities
> > > using
> > > > a PriorityBlockingQueue instead of LinkedBlockingQueue, and
> optionally
> > > > provide a Comparator to sort messages?
> > > >
> > > > Thanks,
> > > > Gérald
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > >
> >
> http://camel.465427.n5.nabble.com/SEDA-with-PriorityBlockingQueue-tp5736411.html
> > > > Sent from the Camel - Users mailing list archive at Nabble.com.
> > >
> > >
> > >
> > > --
> > > Claus Ibsen
> > > -----------------
> > > Red Hat, Inc.
> > > Email: cibsen@redhat.com
> > > Twitter: davsclaus
> > > Blog: http://davsclaus.com
> > > Author of Camel in Action: http://www.manning.com/ibsen
> > >
> >
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Re: SEDA with PriorityBlockingQueue

Posted by Raul Kripalani <ra...@evosent.com>.
+1. It would enable many interesting solutions.
On 29 Jul 2013 15:48, "Christian Müller" <ch...@gmail.com>
wrote:

> +1
>
> Best,
> Christian
> Am 29.07.2013 11:00 schrieb "Claus Ibsen" <cl...@gmail.com>:
>
> > Hi
> >
> > Yeah if you use java code and create the SedaEndpoints manually. You
> > can pass in the queue instance of your choice.
> >
> > Though maybe we should have an interface for a queue factory so people
> > can configure this once on the seda component once, and have it work
> > out of the box?
> >
> >
> > On Mon, Jul 29, 2013 at 10:52 AM, gquintana <ge...@gmail.com>
> > wrote:
> > > Hi,
> > >
> > > Is it possible to configure a SEDA endpoint so as to handle priorities
> > using
> > > a PriorityBlockingQueue instead of LinkedBlockingQueue, and optionally
> > > provide a Comparator to sort messages?
> > >
> > > Thanks,
> > > Gérald
> > >
> > >
> > >
> > > --
> > > View this message in context:
> >
> http://camel.465427.n5.nabble.com/SEDA-with-PriorityBlockingQueue-tp5736411.html
> > > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > Red Hat, Inc.
> > Email: cibsen@redhat.com
> > Twitter: davsclaus
> > Blog: http://davsclaus.com
> > Author of Camel in Action: http://www.manning.com/ibsen
> >
>

Re: SEDA with PriorityBlockingQueue

Posted by Christian Müller <ch...@gmail.com>.
+1

Best,
Christian
Am 29.07.2013 11:00 schrieb "Claus Ibsen" <cl...@gmail.com>:

> Hi
>
> Yeah if you use java code and create the SedaEndpoints manually. You
> can pass in the queue instance of your choice.
>
> Though maybe we should have an interface for a queue factory so people
> can configure this once on the seda component once, and have it work
> out of the box?
>
>
> On Mon, Jul 29, 2013 at 10:52 AM, gquintana <ge...@gmail.com>
> wrote:
> > Hi,
> >
> > Is it possible to configure a SEDA endpoint so as to handle priorities
> using
> > a PriorityBlockingQueue instead of LinkedBlockingQueue, and optionally
> > provide a Comparator to sort messages?
> >
> > Thanks,
> > Gérald
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/SEDA-with-PriorityBlockingQueue-tp5736411.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>

Re: SEDA with PriorityBlockingQueue

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Yeah if you use java code and create the SedaEndpoints manually. You
can pass in the queue instance of your choice.

Though maybe we should have an interface for a queue factory so people
can configure this once on the seda component once, and have it work
out of the box?


On Mon, Jul 29, 2013 at 10:52 AM, gquintana <ge...@gmail.com> wrote:
> Hi,
>
> Is it possible to configure a SEDA endpoint so as to handle priorities using
> a PriorityBlockingQueue instead of LinkedBlockingQueue, and optionally
> provide a Comparator to sort messages?
>
> Thanks,
> Gérald
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/SEDA-with-PriorityBlockingQueue-tp5736411.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen