Class BlockTradeExecuteSentResponder
- java.lang.Object
-
- com.caplin.motif.fx.trading.Responder<T>
-
- com.caplin.motif.fx.trading.FXResponder<BlockTrade>
-
- com.caplin.motif.fx.trading.block.responder.BlockTradeExecuteSentResponder
-
public class BlockTradeExecuteSentResponder extends FXResponder<BlockTrade>
A Responder for block trades that can to respond from the ExecuteSent
- See Also:
BlockTrade.getExecutedSentResponder()
-
-
Constructor Summary
Constructors Constructor Description BlockTradeExecuteSentResponder(BlockTrade trade)
Constructs a Responder that can send messages from the ExecuteSent state for the BlockTrade trade model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sendExecuteAck(BlockTradeExecuteAckEvent event)
Sends a message to acknowledge to the client that its trade submission message has been received by the backend.-
Methods inherited from class com.caplin.motif.fx.trading.FXResponder
sendError, sendReject
-
-
-
-
Constructor Detail
-
BlockTradeExecuteSentResponder
public BlockTradeExecuteSentResponder(BlockTrade trade)
Constructs a Responder that can send messages from the ExecuteSent state for the BlockTrade trade model.Please use
BlockTrade.getExecutedSentResponder()
to retrieve an instance.- Parameters:
trade
- The trade that this responder will send messages for.
-
-
Method Detail
-
sendExecuteAck
public void sendExecuteAck(BlockTradeExecuteAckEvent event) throws com.caplin.trading.TradeException
Sends a message to acknowledge to the client that its trade submission message has been received by the backend.- Parameters:
event
- the event to notify to the client that request to execute a block trade has been received by the backend.- Throws:
com.caplin.trading.TradeException
- if there was a problem sending the event
-
-