Class ScheduleAutoConfiguration


  • @Configuration
    @Profile("!schedule-disabled")
    @EnableScheduling
    public class ScheduleAutoConfiguration
    extends BaseConfiguration
    ScheduleAutoConfiguration configures the flux calls.
    • Method Detail

      • taskScheduler

        @Bean
        public org.springframework.scheduling.TaskScheduler taskScheduler()
        Configure the task scheduler.
        Returns:
        task scheduler
      • accountFluxUpdate

        @Scheduled(initialDelay=1000L,
                   fixedDelay=1L)
        public void accountFluxUpdate()
        Recurrent calls the account flux.
      • tickerFluxUpdate

        @Scheduled(initialDelay=1000L,
                   fixedDelay=1L)
        public void tickerFluxUpdate()
        Recurrent calls the ticker flux.
      • tradeFluxUpdate

        @Scheduled(initialDelay=1000L,
                   fixedDelay=1L)
        public void tradeFluxUpdate()
        Recurrent calls the order/trade flux.
      • shutdown

        @PreDestroy
        public void shutdown()
        This method is called before the application shutdown. We stop the flux.