Not at this time, I think your best bet is to extend DefaultExecutorService!
Thanks Vladimir for the anwser.
Do you plan for the 5.2.0.Final release to provide a new interface for the DistributedExecutorService ?
I think it would be nice to be able to just add a submit(Address... addresses, Callable task) method.
That way all the address filtering (submit on the same machine, site, everywhere, everywhere but here, etc.) could be easily achieved.
Maybe some method, like the one I just proposed, could be isolated in an AdvancedDistributedExecutorService, a bit like the AdvancedCache interface ?
What do you think about that ?
Yeah, I think we could add:
<T> List<Future<T>> submitEverywhere(Callable<T> task, Address...);
Please open a JIRA issue and we'll see to squeeze it in 5.2.
P.S In Jira description make a case for this feature as it will be easier to push it in 5.2 final.