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