Package tech.cassandre.trading.bot.batch
Class TradeFlux
- java.lang.Object
-
- tech.cassandre.trading.bot.util.base.Base
-
- tech.cassandre.trading.bot.util.base.BaseFlux<TradeDTO>
-
- tech.cassandre.trading.bot.batch.TradeFlux
-
-
Constructor Summary
Constructors Constructor Description TradeFlux(TradeService newTradeService)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<TradeDTO>
getNewValues()
Implements this method to return all the new values.void
restoreTrade(TradeDTO trade)
Restore trade.-
Methods inherited from class tech.cassandre.trading.bot.util.base.BaseFlux
emitValue, getFlux, getOverflowStrategy, update
-
-
-
-
Constructor Detail
-
TradeFlux
public TradeFlux(TradeService newTradeService)
Constructor.- Parameters:
newTradeService
- trade service
-
-
Method Detail
-
getNewValues
protected final Set<TradeDTO> 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<TradeDTO>
- Returns:
- list of new values
-
restoreTrade
public final void restoreTrade(TradeDTO trade)
Restore trade.- Parameters:
trade
- trade
-
-