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 Summary
Constructors Constructor Description MicroserviceSubscriptionScheduler(MicroserviceSubscriptionsService service, PlatformProperties properties, org.springframework.context.ApplicationEventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent applicationContextEvent)
-
-
-
Constructor Detail
-
MicroserviceSubscriptionScheduler
@Autowired public MicroserviceSubscriptionScheduler(MicroserviceSubscriptionsService service, PlatformProperties properties, org.springframework.context.ApplicationEventPublisher eventPublisher)
-
-