Package tech.cassandre.trading.bot.batch
Class PositionFlux
- java.lang.Object
-
- tech.cassandre.trading.bot.util.base.Base
-
- tech.cassandre.trading.bot.util.base.batch.BaseFlux<PositionDTO>
-
- tech.cassandre.trading.bot.batch.PositionFlux
-
public class PositionFlux extends BaseFlux<PositionDTO>
Position flux - pushPositionDTO
.
-
-
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 PositionFlux(PositionRepository positionRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<PositionDTO>
getNewValues()
Implements this method to return all the new values.Set<PositionDTO>
saveValues(Set<PositionDTO> 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
-
PositionFlux
public PositionFlux(PositionRepository positionRepository)
-
-
Method Detail
-
getNewValues
protected final Set<PositionDTO> 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<PositionDTO>
- Returns:
- list of new values
-
saveValues
public final Set<PositionDTO> saveValues(Set<PositionDTO> newValues)
Description copied from class:BaseFlux
Implements this method to save values coming from flux.- Specified by:
saveValues
in classBaseFlux<PositionDTO>
- Parameters:
newValues
- new value- Returns:
- the value saved
-
-