Interface BlockStateEventFactory
- All Known Implementing Classes:
CancellableBlockStateEventFactory
public interface BlockStateEventFactory
A factory which creates
BlockStateEvent
objects.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateTradeStateEventForWithdraw
(String tradeId, com.caplin.ret.trapi.fx.execution.TradeEvent event, BlockHandler tradeHandler) Returns a newBlockStateEvent
for a withdraw event.void
initialise
(BlockStateEventFactory.Context context) This notifies theRESTradeListenerEventInfoFactory
that it is about to be loaded.
-
Method Details
-
initialise
This notifies the
RESTradeListenerEventInfoFactory
that it is about to be loaded. This method will be called by the system once.You should use this method to perform any initialisation required before the
BlockStateEventFactory
is loaded by the system. -
createTradeStateEventForWithdraw
BlockStateEvent createTradeStateEventForWithdraw(String tradeId, com.caplin.ret.trapi.fx.execution.TradeEvent event, BlockHandler tradeHandler) Returns a new
BlockStateEvent
for a withdraw event.Use this method to create a new
BlockStateEvent
.
-