Class CancellableBlockStateEventFactory
- java.lang.Object
-
- com.caplin.motif.fx.ret.fxtrading.extension.tradelistener.CancellableBlockStateEventFactory
-
- All Implemented Interfaces:
BlockStateEventFactory
public class CancellableBlockStateEventFactory extends java.lang.Object implements BlockStateEventFactory
AnBlockStateEventFactory
that returns anBlockStateEvent
compatible with the FXMotif.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.caplin.motif.fx.ret.fxtrading.submission.block.BlockStateEventFactory
BlockStateEventFactory.Context
-
-
Constructor Summary
Constructors Constructor Description CancellableBlockStateEventFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockStateEvent
createTradeStateEventForWithdraw(java.lang.String tradeId, com.caplin.ret.trapi.fx.execution.TradeEvent event, BlockHandler tradeHandler)
Returns anBlockStateEvent
which is in a cancellable state.void
initialise(BlockStateEventFactory.Context context)
This notifies theRESTradeListenerEventInfoFactory
that it is about to be loaded.
-
-
-
Method Detail
-
initialise
public void initialise(BlockStateEventFactory.Context context)
Description copied from interface:BlockStateEventFactory
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.- Specified by:
initialise
in interfaceBlockStateEventFactory
-
createTradeStateEventForWithdraw
public BlockStateEvent createTradeStateEventForWithdraw(java.lang.String tradeId, com.caplin.ret.trapi.fx.execution.TradeEvent event, BlockHandler tradeHandler)
Returns an
BlockStateEvent
which is in a cancellable state.- Specified by:
createTradeStateEventForWithdraw
in interfaceBlockStateEventFactory
-
-