类 RedisConcurrentListenerContainerFactory<K,V>

java.lang.Object
com.wu.framework.easy.redis.listener.config.RedisConcurrentListenerContainerFactory<K,V>
所有已实现的接口:
ConcurrentListenerContainerFactory<RedisConcurrentMessageListenerContainer<K,V>,MethodRedisListenerEndpoint,K,V>, ListenerContainerFactory<RedisConcurrentMessageListenerContainer<K,V>,MethodRedisListenerEndpoint>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationEventPublisherAware

public class RedisConcurrentListenerContainerFactory<K,V> extends Object implements ConcurrentListenerContainerFactory<RedisConcurrentMessageListenerContainer<K,V>,MethodRedisListenerEndpoint,K,V>
  • 字段详细资料

    • beanFactory

      protected org.springframework.beans.factory.BeanFactory beanFactory
  • 构造器详细资料

    • RedisConcurrentListenerContainerFactory

      public RedisConcurrentListenerContainerFactory()
  • 方法详细资料

    • createListenerContainer

      public RedisConcurrentMessageListenerContainer<K,V> createListenerContainer(MethodRedisListenerEndpoint endpoint)
      指定者:
      createListenerContainer 在接口中 ListenerContainerFactory<K,V>
    • createContainer

      public RedisConcurrentMessageListenerContainer<K,V> createContainer(String... topics)
      指定者:
      createContainer 在接口中 ListenerContainerFactory<K,V>
    • createContainer

      public RedisConcurrentMessageListenerContainer<K,V> createContainer(Pattern topicPattern)
      指定者:
      createContainer 在接口中 ListenerContainerFactory<K,V>
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.

      This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.

      指定者:
      afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
      抛出:
      Exception - in the event of misconfiguration (such as failure to set an essential property) or if initialization fails for any other reason
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Set the ApplicationContext that this object runs in. Normally this call will be used to initialize the object.

      Invoked after population of normal bean properties but before an init callback such as InitializingBean.afterPropertiesSet() or a custom init-method. Invoked after ResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader), ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher) and MessageSourceAware, if applicable.

      指定者:
      setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
      参数:
      applicationContext - the ApplicationContext object to be used by this object
      抛出:
      org.springframework.context.ApplicationContextException - in case of context initialization errors
      org.springframework.beans.BeansException - if thrown by application context methods
      另请参阅:
      • BeanInitializationException
    • setApplicationEventPublisher

      public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
      Set the ApplicationEventPublisher that this object runs in.

      Invoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method. Invoked before ApplicationContextAware's setApplicationContext.

      指定者:
      setApplicationEventPublisher 在接口中 org.springframework.context.ApplicationEventPublisherAware
      参数:
      applicationEventPublisher - event publisher to be used by this object
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Callback that supplies the owning factory to a bean instance.

      Invoked after the population of normal bean properties but before an initialization callback such as InitializingBean.afterPropertiesSet() or a custom init-method.

      指定者:
      setBeanFactory 在接口中 org.springframework.beans.factory.BeanFactoryAware
      参数:
      beanFactory - owning BeanFactory (never null). The bean can immediately call methods on the factory.
      抛出:
      org.springframework.beans.BeansException - in case of initialization errors
      另请参阅:
      • BeanInitializationException