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
ConstructorDescriptionMicroserviceSubscriptionScheduler
(MicroserviceSubscriptionsService service, PlatformProperties properties, org.springframework.context.ApplicationEventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onApplicationEvent
(org.springframework.context.event.ContextRefreshedEvent applicationContextEvent)
-
Constructor Details
-
MicroserviceSubscriptionScheduler
@Autowired public MicroserviceSubscriptionScheduler(MicroserviceSubscriptionsService service, PlatformProperties properties, org.springframework.context.ApplicationEventPublisher eventPublisher)
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent applicationContextEvent) - Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-