类 EasyRedisListenerEndpointRegistrar

java.lang.Object
com.wu.framework.easy.redis.listener.config.EasyRedisListenerEndpointRegistrar
所有已实现的接口:
ListenerEndpointRegistrar<MethodRedisListenerEndpoint,RedisConcurrentListenerContainerFactory>, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean

public class EasyRedisListenerEndpointRegistrar extends Object implements ListenerEndpointRegistrar<MethodRedisListenerEndpoint,RedisConcurrentListenerContainerFactory>
  • 构造器详细资料

    • EasyRedisListenerEndpointRegistrar

      public EasyRedisListenerEndpointRegistrar()
  • 方法详细资料

    • 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
    • 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
    • getRegistry

      public RedisListenerEndpointRegistry getRegistry()
    • setRegistry

      public void setRegistry(RedisListenerEndpointRegistry registry)
    • isStartImmediately

      public boolean isStartImmediately()
    • setStartImmediately

      public void setStartImmediately(boolean startImmediately)
    • registerEndpoint

      public void registerEndpoint(MethodRedisListenerEndpoint endpoint, RedisConcurrentListenerContainerFactory factory)
      注册 端点
      指定者:
      registerEndpoint 在接口中 ListenerEndpointRegistrar<MethodRedisListenerEndpoint,RedisConcurrentListenerContainerFactory>
      参数:
      endpoint - 端点
      factory - 工厂