Class GenieEventBusImpl

java.lang.Object
com.netflix.genie.web.events.GenieEventBusImpl
All Implemented Interfaces:
GenieEventBus, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.event.ApplicationEventMulticaster

public class GenieEventBusImpl extends Object implements GenieEventBus, org.springframework.context.event.ApplicationEventMulticaster, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware
An event bus implementation for the Genie application to use.
Since:
3.1.2
  • Constructor Details

    • GenieEventBusImpl

      public GenieEventBusImpl(@NonNull @NonNull org.springframework.context.event.SimpleApplicationEventMulticaster syncEventMulticaster, @NonNull @NonNull org.springframework.context.event.SimpleApplicationEventMulticaster asyncEventMulticaster)
      Constructor.
      Parameters:
      syncEventMulticaster - The synchronous task multicaster to use
      asyncEventMulticaster - The asynchronous task multicaster to use
  • Method Details

    • publishSynchronousEvent

      public void publishSynchronousEvent(@NonNull @NonNull org.springframework.context.ApplicationEvent event)
      Publish an event in the same thread as the calling thread.
      Specified by:
      publishSynchronousEvent in interface GenieEventBus
      Parameters:
      event - The event to publish
    • publishAsynchronousEvent

      public void publishAsynchronousEvent(@NonNull @NonNull org.springframework.context.ApplicationEvent event)
      Publish an event in a different thread than the calling thread.
      Specified by:
      publishAsynchronousEvent in interface GenieEventBus
      Parameters:
      event - The event to publish
    • addApplicationListener

      public void addApplicationListener(org.springframework.context.ApplicationListener<?> listener)
      Specified by:
      addApplicationListener in interface org.springframework.context.event.ApplicationEventMulticaster
    • addApplicationListenerBean

      public void addApplicationListenerBean(String listenerBeanName)
      Specified by:
      addApplicationListenerBean in interface org.springframework.context.event.ApplicationEventMulticaster
    • removeApplicationListener

      public void removeApplicationListener(org.springframework.context.ApplicationListener<?> listener)
      Specified by:
      removeApplicationListener in interface org.springframework.context.event.ApplicationEventMulticaster
    • removeApplicationListenerBean

      public void removeApplicationListenerBean(String listenerBeanName)
      Specified by:
      removeApplicationListenerBean in interface org.springframework.context.event.ApplicationEventMulticaster
    • removeApplicationListeners

      public void removeApplicationListeners(Predicate<org.springframework.context.ApplicationListener<?>> predicate)
      Specified by:
      removeApplicationListeners in interface org.springframework.context.event.ApplicationEventMulticaster
    • removeApplicationListenerBeans

      public void removeApplicationListenerBeans(Predicate<String> predicate)
      Specified by:
      removeApplicationListenerBeans in interface org.springframework.context.event.ApplicationEventMulticaster
    • removeAllListeners

      public void removeAllListeners()
      Specified by:
      removeAllListeners in interface org.springframework.context.event.ApplicationEventMulticaster
    • multicastEvent

      public void multicastEvent(org.springframework.context.ApplicationEvent event)
      Specified by:
      multicastEvent in interface org.springframework.context.event.ApplicationEventMulticaster
    • multicastEvent

      public void multicastEvent(org.springframework.context.ApplicationEvent event, @Nullable org.springframework.core.ResolvableType eventType)
      Specified by:
      multicastEvent in interface org.springframework.context.event.ApplicationEventMulticaster
    • setBeanClassLoader

      public void setBeanClassLoader(ClassLoader classLoader)
      Specified by:
      setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware