On 22 Sep 2014, at 19:23, William Burns <mudokon...@gmail.com> wrote:
> On Fri, Sep 19, 2014 at 12:39 PM, Emmanuel Bernard > <emman...@hibernate.org> wrote: >> >> On 19 Sep 2014, at 17:09, William Burns <mudokon...@gmail.com> wrote: >> >>> </snip> > >> At any rate the programming model becomes quite awkward and rely on strong >> understanding, I’d prefer to stick an enum showing the transition explicitly >> to make things easier. > > I am not sold on this as it seems pretty trivial to decipher which > operation is which and the information would be present on the > javadocs as well. I’m with Emmanuel on this. I’d much rather avoid relying on whether something is null/not-null and instead rely on a more typesafe solution. In fact, for remote listeners, org.infinispan.client.hotrod.event.ClientEvent has a type that allows the client to detect the type of the event received, independent of what the value(s) contain. Cheers, -- Galder Zamarreño gal...@redhat.com twitter.com/galderz _______________________________________________ infinispan-dev mailing list infinispan-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/infinispan-dev