Class BlockTradeExecutableResponder


public class BlockTradeExecutableResponder extends BlockTradeQuoteResponder

A Responder for block trades that is able to send messages from the Executable state.

See Also:
  • Constructor Details

    • BlockTradeExecutableResponder

      public BlockTradeExecutableResponder(BlockTrade trade)
      Constructs a Responder that can respond from the PickUp state for the BlockTrade trade model.

      Please use BlockTrade.getExecutableResponder() to retrieve this instance.

      Parameters:
      trade - The trade that this responder will send messages for.
  • Method Details

    • sendExpired

      public void sendExpired(BlockTradeExpiredEvent event) throws com.caplin.trading.TradeException
      Sends a message to the client informing it that the block trade can no longer be executed as it has expired.

      Typically after this the client will request a new quote.

      Parameters:
      event - The event to notify the client that the block trade session has Expired.
      Throws:
      com.caplin.trading.TradeException - if there was a problem sending the event
    • sendWithdraw

      public void sendWithdraw(BlockTradeWithdrawEvent event) throws com.caplin.trading.TradeException
      Sends a message to the client withdrawing the block trade.
      Parameters:
      event - The event to withdraw the block trade.
      Throws:
      com.caplin.trading.TradeException - if there was a problem sending the event