Package tech.cassandre.trading.bot.batch
Class AccountFlux
- java.lang.Object
-
- tech.cassandre.trading.bot.util.base.Base
-
- tech.cassandre.trading.bot.util.base.batch.BaseFlux<AccountDTO>
-
- tech.cassandre.trading.bot.batch.AccountFlux
-
public class AccountFlux extends BaseFlux<AccountDTO>
Account flux - pushAccountDTO
.
-
-
Field Summary
-
Fields inherited from class tech.cassandre.trading.bot.util.base.Base
accountMapper, currencyMapper, logger, orderMapper, positionMapper, strategyMapper, tickerMapper, tradeMapper, utilMapper
-
-
Constructor Summary
Constructors Constructor Description AccountFlux(UserService userService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<AccountDTO>
getNewValues()
Implements this method to return all the new values.protected Set<AccountDTO>
saveValues(Set<AccountDTO> newValues)
Implements this method to save values coming from flux.-
Methods inherited from class tech.cassandre.trading.bot.util.base.batch.BaseFlux
emitValue, emitValues, getFlux, getOverflowStrategy, update
-
-
-
-
Constructor Detail
-
AccountFlux
public AccountFlux(UserService userService)
-
-
Method Detail
-
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.- Specified by:
getNewValues
in classBaseFlux<AccountDTO>
- Returns:
- list of new values
-
saveValues
protected final Set<AccountDTO> saveValues(Set<AccountDTO> newValues)
Description copied from class:BaseFlux
Implements this method to save values coming from flux.- Specified by:
saveValues
in classBaseFlux<AccountDTO>
- Parameters:
newValues
- new value- Returns:
- the value saved
-
-