[infinispan-dev] singleton @Listeners

Sanne Grinovero sanne at infinispan.org
Thu Jun 28 12:07:25 EDT 2012


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



More information about the infinispan-dev mailing list