Class BlockTradeExecutedResponder
java.lang.Object
com.caplin.motif.fx.trading.Responder<T>
com.caplin.motif.fx.trading.FXResponder<BlockTrade>
com.caplin.motif.fx.trading.block.responder.BlockTradeExpiredResponder
com.caplin.motif.fx.trading.block.responder.BlockTradeExecutedResponder
A Responder for block trades that can to send messages from the Submitted state.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs a Responder that can respond from the Submitted state for the BlockTrade trade model. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sends a trade confirmation event to notify the client that the trade has been successfully executed with the trade fields that the event was constructed with.Methods inherited from class com.caplin.motif.fx.trading.block.responder.BlockTradeExpiredResponder
sendExpired
Methods inherited from class com.caplin.motif.fx.trading.FXResponder
sendError, sendReject
-
Constructor Details
-
BlockTradeExecutedResponder
Constructs a Responder that can respond from the Submitted state for the BlockTrade trade model.Please use:
BlockTrade.getExecutedResponder()
to retrieve this instance
- Parameters:
trade
- The trade this responder will send messages for
-
-
Method Details
-
sendTradeConfirmation
public void sendTradeConfirmation(BlockTradeConfirmationEvent event) throws com.caplin.trading.TradeException Sends a trade confirmation event to notify the client that the trade has been successfully executed with the trade fields that the event was constructed with.Typically the client will be shown these fields in order to verify what has been executed in the back-end trading system.
- Parameters:
event
- The event containing the fields that have been used to execute the trade.- Throws:
com.caplin.trading.TradeException
- if there was a problem sending the event
-