类 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>
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.booleanvoidregisterEndpoint(MethodRedisListenerEndpoint endpoint, RedisConcurrentListenerContainerFactory factory) 注册 端点voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) Callback that supplies the owning factory to a bean instance.voidsetRegistry(RedisListenerEndpointRegistry registry) voidsetStartImmediately(boolean startImmediately)
-
构造器详细资料
-
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 (nevernull). The bean can immediately call methods on the factory.- 抛出:
org.springframework.beans.BeansException- in case of initialization errors- 另请参阅:
-
BeanInitializationException
-
afterPropertiesSet
Invoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.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
-
setRegistry
-
isStartImmediately
public boolean isStartImmediately() -
setStartImmediately
public void setStartImmediately(boolean startImmediately) -
registerEndpoint
public void registerEndpoint(MethodRedisListenerEndpoint endpoint, RedisConcurrentListenerContainerFactory factory) 注册 端点- 指定者:
registerEndpoint在接口中ListenerEndpointRegistrar<MethodRedisListenerEndpoint,RedisConcurrentListenerContainerFactory> - 参数:
endpoint- 端点factory- 工厂
-