Class BlockTradeSubmittedResponder
- java.lang.Object
-
- com.caplin.motif.fx.trading.Responder<T>
-
- com.caplin.motif.fx.trading.FXResponder<BlockTrade>
-
- com.caplin.motif.fx.trading.block.responder.BlockTradeSubmittedResponder
-
public class BlockTradeSubmittedResponder extends FXResponder<BlockTrade>
The Responder for block trades that can send messages from the Submitted state.
- See Also:
BlockTrade.getSubmittedResponder()
-
-
Constructor Summary
Constructors Constructor Description BlockTradeSubmittedResponder(BlockTrade trade)
Constructs a Responder that can respond from the Submitted state for the BlockTrade trade model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sendSubmitAck(BlockTradeSubmitAckEvent event)
Sends a message to acknowledge that the clients request to block trade has been received.-
Methods inherited from class com.caplin.motif.fx.trading.FXResponder
sendError, sendReject
-
-
-
-
Constructor Detail
-
BlockTradeSubmittedResponder
public BlockTradeSubmittedResponder(BlockTrade trade)
Constructs a Responder that can respond from the Submitted state for the BlockTrade trade model.Please use
BlockTrade.getSubmittedResponder()
to retrieve this instance- Parameters:
trade
- the Trade this responder will send messages for.
-
-
Method Detail
-
sendSubmitAck
public void sendSubmitAck(BlockTradeSubmitAckEvent event) throws com.caplin.trading.TradeException
Sends a message to acknowledge that the clients request to block trade has been received.- Parameters:
event
- the ack event for the clients request to initiate a block trade.- Throws:
com.caplin.trading.TradeException
- if there was a problem sending the quote
-
-