Class MicroserviceSubscriptionScheduler

  • All Implemented Interfaces:
    EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>

    @Service
    public class MicroserviceSubscriptionScheduler
    extends Object
    implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
    A service which creates a scheduled task to fetch microservice subscriptions. Emits MicroserviceSubscriptionsInitializedEvent when scheduled task is initialized.
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.context.event.ContextRefreshedEvent applicationContextEvent)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>