Joe Elliott
unread,Mar 29, 2011, 4:33:44 PM3/29/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haze...@googlegroups.com
I'm curious to understand the implications of overloading the ExecutorService with too many tasks.
Can somebody please confirm if these assumptions are correct:
1) If there are more being executed by a particular node than the 'maxPoolSize' for the target node, then any new task submitted will block until there is an available thread in the target node pool.
2) On the invoking node, the only threads being held while is task is in progress would be ones calling DistributedTask.get()
And a few questions:
3) Is there any way to configure a limit to the queue size so that any new tasks submitted once the limit of pending tasks is reached will immediately fail?
4) Is there any way to monitor the current size of any pending task queue?
5) Any suggestions on how to setup a callback when an executed task is complete?
thanks much,
- joe