[infinispan-dev] what happens when an event listener throws an exception
"이희승 (Trustin Lee)"
trustin at gmail.com
Wed Oct 20 04:40:14 EDT 2010
Twisted has pretty nice mechanism called deferred for this:
http://twistedmatrix.com/documents/current/core/howto/deferredindepth.html
It's basically a combination of Future and a linked list of listeners.
Although we are not doing asynchronous stuff, it is still very
interesting to know how a list of listeners work.
It took me some time to understand all, but it worth your time in my
opinion. :)
Trustin
Manik Surtani wrote:
> Hmm, I'm not so sure. What about CacheListeners that are designed to abort a call? Throwing an exception would be the logical way to do this.
>
> On 14 Oct 2010, at 20:01, Mircea Markus wrote:
>
>> ${SUBJECT} ?
>>
>> This doesn't seem to be specified in the javadoc at the moment. Looking at CacheNotifierImpl it doesn't expect such a thing to happen.
>> IMO we should handle these exceptions and log them as warn.
>> One way or the other we should expect this to happen, and document it.
>> wdyt?
>>
>> Cheers,
>> Mircea
>> _______________________________________________
>> 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
>
>
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Trustin Lee - http://gleamynode.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 290 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/infinispan-dev/attachments/20101020/e998d8d5/attachment-0001.bin
More information about the infinispan-dev
mailing list