Class TickerFlux


public class TickerFlux extends BaseFlux<TickerDTO>
Ticker flux - push TickerDTO. Two methods override from super class: - getNewValues(): calling market service to retrieve tickers from exchange. - saveValues(): not implemented as we don't store tickers data in database. To get a deep understanding of how it works, read the documentation of BaseFlux.
  • Constructor Details

    • TickerFlux

      public TickerFlux(org.springframework.context.ApplicationContext applicationContext, MarketService marketService)
  • Method Details

    • getNewValues

      protected final Set<TickerDTO> getNewValues()
      Description copied from class: BaseFlux
      Implements this method to return all the new values. Those values will be sent to the strategy.
      Overrides:
      getNewValues in class BaseFlux<TickerDTO>
      Returns:
      list of new values