[infinispan-dev] NotifyingFuture vs Deferred

Manik Surtani manik at jboss.org
Mon Oct 25 07:04:13 EDT 2010


So you're suggesting adding exception handling to NotifyingFuture?  :)

On 21 Oct 2010, at 09:48, 이희승 (Trustin Lee) wrote:

> Deferred is not different from NotifyingFuture fundamentally.  The only
> difference is how it handles an exceptional case and callbacks can
> return another Deffered, which makes chained asynchronous operations
> possible.
> 
> This difference opens a lot of possibilities for performing a series of
> asynchronous operations.  It can be compared to dynamic construction of
> interceptor chains.
> 
> So, I'd like to propose to replacing the current NotifyingFuture
> implementation with Deferred.  I think the name 'Deferred' is somewhat
> less intuitive, so retaining the name might be a good idea.
> 
> If you are not familiar with Deferreds, check this out:
> 
> http://twistedmatrix.com/documents/current/core/howto/deferredindepth.html
> 
> -- 
> Trustin Lee - http://gleamynode.net/
> 
> 
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org







More information about the infinispan-dev mailing list