[infinispan-dev] Distributed execution framework - API proposal(s)

Manik Surtani manik at jboss.org
Wed Jan 5 13:39:34 EST 2011


On 5 Jan 2011, at 17:05, Vladimir Blagojevic wrote:

>> Or, perhaps, making use of a more fluent API:
>> 
>> R result = new MapReduceTask(cache).on(K...).mappedWith(mapper).reducedWith(reducer).collate(collator);
>> 
>> Future<R>  result = new MapReduceTask(cache).on(K...).mappedWith(mapper).reducedWith(reducer).collateAsynchronously(collator);
>> 
>> List<R>  result = new DistributedRemoteTask(cache).on(K...).execute(distributedCallable);
>> 
>> List<Future<R>>  result = new DistributedRemoteTask(cache).on(K...).executeAsync(distributedCallable);
>> 
> 
> 
> 
> Awesome! I love this fluent API proposal!
> 

Cool.  Then if this is the case lets stick with the fluent API - I think it would make life much easier for developers.

--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani

Lead, Infinispan
http://www.infinispan.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20110105/c08e15d5/attachment.html 


More information about the infinispan-dev mailing list