Package tech.cassandre.trading.bot.batch
Class PositionFlux
- java.lang.Object
-
- tech.cassandre.trading.bot.util.base.Base
-
- tech.cassandre.trading.bot.util.base.BaseFlux<PositionDTO>
-
- tech.cassandre.trading.bot.batch.PositionFlux
-
public class PositionFlux extends BaseFlux<PositionDTO>
Position flux - pushPositionDTO
.
-
-
Constructor Summary
Constructors Constructor Description PositionFlux(PositionService newPositionService)
Constructor.
-
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.void
restorePosition(PositionDTO position)
Restore position.-
Methods inherited from class tech.cassandre.trading.bot.util.base.BaseFlux
emitValue, getFlux, getOverflowStrategy, update
-
-
-
-
Constructor Detail
-
PositionFlux
public PositionFlux(PositionService newPositionService)
Constructor.- Parameters:
newPositionService
- position service
-
-
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
-
restorePosition
public final void restorePosition(PositionDTO position)
Restore position.- Parameters:
position
- position
-
-