Class PublishMetricsTask
- java.lang.Object
-
- org.onebusaway.aws.monitoring.tasks.metrics.PublishMetricsTask
-
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
public class PublishMetricsTask extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
-
Constructor Summary
Constructors Constructor Description PublishMetricsTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
void
publishEveryMinute()
-
-
-
Method Detail
-
publishEveryMinute
@Scheduled(fixedRate=60000L) public void publishEveryMinute()
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
-