Class 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 Detail

      • PublishMetricsTask

        public PublishMetricsTask()
    • Method Detail

      • publishEveryMinute

        @Scheduled(fixedRate=60000L)
        public void publishEveryMinute()
      • onApplicationEvent

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