[infinispan-dev] Optional in listener events

Sebastian Laskawiec slaskawi at redhat.com
Mon Aug 22 02:23:27 EDT 2016


+1. I like the idea.

Thanks
Sebastian

On Fri, Aug 19, 2016 at 10:34 PM, Radim Vansa <rvansa at redhat.com> wrote:

> Hi,
>
> as I am trying to simplify current entry wrapping and distribution code,
> I often find that listeners can get wrong previous value in the event,
> and it sometimes forces the command to load the value even if it is not
> needed for the command.
>
> I am wondering if we should change the previous value in events to
> Optional - we can usually at least detect that we cannot provide a
> reliable value (e.g. after retry due to topology change, or because the
> command did not bothered to load the previous value from cache loader)
> and return empty Optional.
>
> WDYT?
>
> Radim
>
> --
> Radim Vansa <rvansa at redhat.com>
> JBoss Performance Team
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20160822/d5cdb9e6/attachment.html 


More information about the infinispan-dev mailing list