public class CancellableRFSStateEventFactory<T extends com.caplin.motif.fx.trading.FXTrade> extends java.lang.Object implements RFSStateEventFactory<T>
RFSStateEventFactory
that returns an RFSStateEvent
compatible with the FXMotif.RFSStateEventFactory.Context
Constructor and Description |
---|
CancellableRFSStateEventFactory() |
Modifier and Type | Method and Description |
---|---|
RFSStateEvent<T> |
createTradeStateEventForWithdraw(java.lang.String tradeId,
com.caplin.ret.trapi.fx.execution.TradeEvent event,
TradeTypeHandler<T> tradeHandler,
RFSResponderProvider<T> responderProvider)
Returns an
RFSStateEvent which is in a cancellable state. |
void |
initialise(RFSStateEventFactory.Context context)
This notifies the
RESTradeListenerEventInfoFactory that it is about to be loaded. |
public void initialise(RFSStateEventFactory.Context context)
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
RFSStateEventFactory
is loaded by the system.
initialise
in interface RFSStateEventFactory<T extends com.caplin.motif.fx.trading.FXTrade>
public RFSStateEvent<T> createTradeStateEventForWithdraw(java.lang.String tradeId, com.caplin.ret.trapi.fx.execution.TradeEvent event, TradeTypeHandler<T> tradeHandler, RFSResponderProvider<T> responderProvider)
Returns an RFSStateEvent
which is in a cancellable state.
createTradeStateEventForWithdraw
in interface RFSStateEventFactory<T extends com.caplin.motif.fx.trading.FXTrade>
Copyright © 2016 Caplin Systems.