Class ScheduleAutoConfiguration


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

      • ScheduleAutoConfiguration

        public ScheduleAutoConfiguration​(AccountFlux newAccountFlux,
                                         TickerFlux newTickerFlux,
                                         OrderFlux newOrderFlux,
                                         TradeFlux newTradeFlux,
                                         PositionFlux newPositionFlux)
        Constructor.
        Parameters:
        newAccountFlux - account flux
        newTickerFlux - ticker flux
        newOrderFlux - order flux
        newTradeFlux - trade flux
        newPositionFlux - position flux
    • Method Detail

      • setupAccountFlux

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

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

        @Scheduled(fixedDelay=1L,
                   initialDelay=1000L)
        public void setupOrderFlux()
        Recurrent calls the order flux.
      • setupTradeFlux

        @Scheduled(fixedDelay=1L,
                   initialDelay=1000L)
        public void setupTradeFlux()
        Recurrent calls the trade flux.
      • setPositionFlux

        @Scheduled(fixedDelay=1000L,
                   initialDelay=1000L)
        public void setPositionFlux()
        Recurrent calls the position flux.