Class RqueueAutoStartupLifecycle
java.lang.Object
com.github.sonus21.rqueue.spring.boot.RqueueAutoStartupLifecycle
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.config.BeanPostProcessor,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
public class RqueueAutoStartupLifecycle
extends Object
implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
Delays Rqueue poller startup in Boot web applications until the servlet or reactive web server
is ready and Spring Boot has published
ApplicationReadyEvent.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelayAutoStartup(com.github.sonus21.rqueue.listener.RqueueMessageListenerContainer container) voidonApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) postProcessBeforeInitialization(Object bean, String beanName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecutionMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitialization
-
Constructor Details
-
RqueueAutoStartupLifecycle
public RqueueAutoStartupLifecycle()
-
-
Method Details
-
delayAutoStartup
public void delayAutoStartup(com.github.sonus21.rqueue.listener.RqueueMessageListenerContainer container) -
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
-