Class CacheManagerNotifierImpl

  • All Implemented Interfaces:
    CacheManagerNotifier, Listenable

    public class CacheManagerNotifierImpl
    extends org.infinispan.notifications.impl.AbstractListenerImpl<Event,​org.infinispan.notifications.impl.ListenerInvocation<Event>>
    implements CacheManagerNotifier
    Global, shared notifications on the cache manager.
    Since:
    4.0
    Author:
    Manik Surtani
    • Constructor Detail

      • CacheManagerNotifierImpl

        public CacheManagerNotifierImpl()
    • Method Detail

      • addListener

        public void addListener​(Object listener)
        Description copied from interface: Listenable
        Adds a listener to the component. Typically, listeners would need to be annotated with Listener and further to that, contain methods annotated appropriately, otherwise the listener will not be registered.

        See the Listener annotation for more information.

        Specified by:
        addListener in interface Listenable
        Parameters:
        listener - must not be null.
      • getLog

        protected org.infinispan.util.logging.Log getLog()
        Specified by:
        getLog in class org.infinispan.notifications.impl.AbstractListenerImpl<Event,​org.infinispan.notifications.impl.ListenerInvocation<Event>>
      • getAllowedMethodAnnotations

        protected Map<Class<? extends Annotation>,​Class<?>> getAllowedMethodAnnotations​(Listener l)
        Specified by:
        getAllowedMethodAnnotations in class org.infinispan.notifications.impl.AbstractListenerImpl<Event,​org.infinispan.notifications.impl.ListenerInvocation<Event>>
      • suspendIfNeeded

        protected final Transaction suspendIfNeeded()
        Specified by:
        suspendIfNeeded in class org.infinispan.notifications.impl.AbstractListenerImpl<Event,​org.infinispan.notifications.impl.ListenerInvocation<Event>>
      • resumeIfNeeded

        protected final void resumeIfNeeded​(Transaction transaction)
        Specified by:
        resumeIfNeeded in class org.infinispan.notifications.impl.AbstractListenerImpl<Event,​org.infinispan.notifications.impl.ListenerInvocation<Event>>