Class BaseExternalFlux<T>
- java.lang.Object
-
- tech.cassandre.trading.bot.util.base.Base
-
- tech.cassandre.trading.bot.util.base.batch.BaseFlux<T>
-
- tech.cassandre.trading.bot.util.base.batch.BaseExternalFlux<T>
-
- Type Parameters:
T
- flux type
- Direct Known Subclasses:
AccountFlux
,OrderFlux
,TickerFlux
,TradeFlux
public abstract class BaseExternalFlux<T> extends BaseFlux<T>
Base external flux.
-
-
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 BaseExternalFlux()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Set<T>
getNewValues()
Implements this method to return all the new values.void
update()
Method executed when values must be updated (usually called by schedulers).-
Methods inherited from class tech.cassandre.trading.bot.util.base.batch.BaseFlux
emitValue, getFlux, getOverflowStrategy, saveValue
-
-
-
-
Method Detail
-
getNewValues
protected abstract Set<T> getNewValues()
Implements this method to return all the new values. Those values will be sent to the strategy.- Returns:
- list of new values
-
update
public final void update()
Method executed when values must be updated (usually called by schedulers).
-
-