Class MicroserviceSubscriptionScheduler

java.lang.Object
com.cumulocity.microservice.subscription.service.impl.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.
  • Constructor Details

  • Method Details

    • onApplicationEvent

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