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:
  • Constructor Details

    • 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 Details

    • 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