Re: How to use priority queue in ThreadPoolTaskExecutor

Ben Short <[email protected]> Mon, 1 Feb 2010 09:58:34 +0000
Newsgroups gmane.comp.java.springframework.user
Message-ID <[email protected]>
Take a look at the java.util.concurrent.PriorityBlockingQueue.

As a rough guess you'll need to override the createQueue method of
the ThreadPoolTaskExecutor to return a PriorityBlockingQueue.

Ben

2010/2/1 Michal Singer <[email protected]>

>
> Hi, i need to configure the thred pool executor to give different
> priorities
> to different tasks.
> How can i do this?
>
> thanks, Michal
> --
> View this message in context:
> http://old.nabble.com/How-to-use-priority-queue-in-ThreadPoolTaskExecutor-tp27401716p27401716.html
> Sent from the springframework-user mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Springframework-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/springframework-user
>

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com

_______________________________________________
Springframework-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/springframework-user