I'd like to implement a distributed task scheduler using Hazelcast. It could be done using a distributed queue if I could pull items out of the queue based on their nextFireTime. In other words, if I could specify the order of items in the queue.
Unfortunately, it appears that Hazelcast queues are strictly first-in first-out.
If I could get a different ordering, then I could have a bunch of machines polling the queue, looking for a task that had a nextFireTime >= now. The first machine to grab the task would execute it. It would make a very nice distributed job scheduler.
Is this possible?
Is there a different approach which is better?
--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Hazelcast" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hazelcast/POdgnE-pgFg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/2d33aace-87c3-4076-a21b-f9cd3e3f3073%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.