[infinispan-dev] singleton @Listeners

Mircea Markus mmarkus at redhat.com
Fri Jun 29 07:47:07 EDT 2012


yes.

----- Original Message -----
> From: "Sanne Grinovero" <sanne at infinispan.org>
> To: "infinispan -Dev List" <infinispan-dev at lists.jboss.org>
> Sent: Thursday, June 28, 2012 5:07:25 PM
> Subject: Re: [infinispan-dev] singleton @Listeners
> 
> And I guess there must be strong guarantees that a listener is
> actually invoked?
> 
> On 28 June 2012 16:26, Mircea Markus <mmarkus at redhat.com> wrote:
> > This is a problem that pops up constantly:
> > User:      "I add a listener to my distributed/replicated cache but
> > this gets invoked numOwners times - can I make that to be invoked
> > only once cluster wise?"
> > Developer: "Yes, you can! You have to do that and that..."
> >
> > What about a "singleton" attribute on the Listener? Would make the
> > reply shorter:
> > Developer: "Use @Listener(singleton=true)"
> >
> > Cheers,
> > Mircea
> >
> > _______________________________________________
> > infinispan-dev mailing list
> > infinispan-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/infinispan-dev
> 
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev



More information about the infinispan-dev mailing list