Class AccountFlux


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

    • AccountFlux

      public AccountFlux(UserService userService)
  • Method Details

    • getNewValues

      protected final Set<AccountDTO> 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<AccountDTO>
      Returns:
      list of new values